The quiz questions are designed to test your knowledge of the material covered in this hour . The answers to the questions follow.
Why is Key.isDown not a surefire way to detect whether a key is pressed?
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.
How does ActionScript get the value of an input text field?
The input text field needs to be linked to a variable. Then ActionScript just accesses that variable.
What is character number 7 of the string "ActionScript" ?
"c." If you answered "S," you forgot that the first character is character number 0.
What is the result of ("ActionScript").indexOf("c",3) ?
7. The function is trying to determine the first occurrence of the character "c," skipping the first three characters .