AS Quiz # 3

Here is another quiz. Tomorrows quiz will be about design patterns…

Number of Questions : 5
Difficulty : Easy
Topic : General

Which of the below code snippets would cause a MovieClip located at 0 on the x axis to "ease-out" to 500 on the x axis?
Assume you have a MovieClip with the instance name "myClip" and that this code is happening on and enterFrame or in a timer





If you have a TextField nested within a MovieClip that has its buttonMode property set equal to true. Which of the following properties would you set to false on the TextField if you wanted to the hand cursor to appear when the mouse is over the TextField?





If you were to trace out the rotation property of a DisplayObject, you would notice that the values aren't simply from 0-360. Which of the following best describes the range of results you would get by tracing out the rotation property?







Given the below XML, how would you go about reading the name attribute of the leader node?
XML:
  1. <demo>
  2.   <users>
  3.      <team title="The Red Team">
  4.         <leader name="Joseph Brink" age="50" />
  5.         <player name="Nelson Smith" age "29" />
  6.         <player name="Joe Smith" age "29" />
  7.      </team>
  8.   </users>
  9. </demo>







If you want to load a text file, what class would you be most likely use?









This entry was posted in Quiz and tagged , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

7 Comments

  1. Posted January 13, 2010 at 11:06 am | Permalink

    I don’t like question #1:

    * myClip.x = (500 - myClip.x) * 1.5
    Does nothing if myClip.x == 500
    * myClip.x = (500 - myClip.y) / 10
    Does nothing if myClip.y == 500
    * myClip.x += (500 - myClip.x) / 4
    Does nothing if myClip.x == 500
    * myClip.y -= (500 + myClip.y) * 0.5
    Does nothing if myClip.y == -500

    It was fun other than that. :)

  2. Posted January 13, 2010 at 12:47 pm | Permalink

    stating a starting point would probably have been a good idea… “something like, which one would ease a clip from 0 to 500…. maybe I’ll add that

  3. Posted January 13, 2010 at 12:54 pm | Permalink

    revised the question slightly… i think its better now, thanks for the feedback :)

  4. Posted January 14, 2010 at 1:04 am | Permalink

    I did 5 out of 5 thanks to your book! Learning AS3

  5. rishabh govindraj
    Posted January 14, 2010 at 6:22 am | Permalink

    “You scored 5 out of 5. (100.00 %)”

    these really help me revise as3

    i actually tested the rotation one

  6. Posted January 15, 2010 at 7:02 am | Permalink

    I only failed on the rotation and XML questions, simply cos I’ve never used them in my work. Keep up the fun!

  7. jared
    Posted February 9, 2010 at 10:42 pm | Permalink

    4/5 - missed the embedded textfield in movieclip question…idk what’s up i know that

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*