• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Workshop

The quiz questions are designed to test your knowledge of the material covered in this hour. The answers to the questions follow.

Quiz

1:Why is Key.isDown not a surefire way to detect whether a key is pressed?
A1: Because it only checks whether the key is down at that very moment. Even if you are constantly checking, once per frame, the user could still quickly press and release the key between checks.
2:How does ActionScript get the value of an input text field?
A2: The input text field needs to be linked to a variable. Then ActionScript just accesses that variable.
3:What is character number 7 of the string "ActionScript"?
A3: “c.” If you answered “S,” you forgot that the first character is character number 0.
4:What is the result of ("ActionScript").indexOf("c",3)?
A4: 7. The function is trying to determine the first occurrence of the character “c,” skipping the first three characters.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint