Workshop

I l @ ve RuBoard

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 .

I l @ ve RuBoard


Sams Teach Yourself Flash MX ActionScript in 24 Hours
Sams Teach Yourself Flash MX ActionScript in 24 Hours
ISBN: 0672323850
EAN: 2147483647
Year: 2002
Pages: 272

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net