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 Questions

1:

If you have a movie with several frames, how do you prevent the movie from automatically animating through all the frames ?

A1:

Place a stop command on the first frame.

2:

What is the difference between gotoAndPlay and gotoAndStop ?

A2:

The gotoAndPlay command jumps to a frame, and the movie continues to flow forward. The gotoAndStop command stops the movie on the destination frame.

3:

What are the two on handlers that will respond to a button click?

A3:

You can use on (press) to trigger code when the user clicks the button and on (release) to trigger code when the user releases the button.

4:

Why should you avoid using frame numbers in gotoAndStop and gotoAndPlay commands?

A4:

If you use frame numbers, and later insert or remove frames from your timeline, you will have to go back and adjust the frame numbers in your code. On the other hand, if you use frame names , your code will always go to the right frame.

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