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:

How much of a Flash movie normally needs to load before it starts?

A1:

Only the media for the first frame is needed for the first frame to be displayed and the movie to begin. You'll need to stop the movie there if you want to wait for more before continuing.

2:

What are two ways to determine whether a movie is completely loaded?

A2:

One way is when the getBytesLoaded equals the getBytesTotal function. Another method is to check the _ frameLoaded property and compare it to the _totalFrames property.

3:

What file formats must you use for sounds and images to load them dynamically?

A3:

Sounds need to be MP3 files, and images need to be JPEG files. However, another way to do it is that you can load either if it is in an external movie file.

4:

Using getBytesTotal and getBytesLoaded , how do you determine the percentage of the movie loaded?

A4:

If you divide getBytesTotal by getBytesLoaded , you will get a value from 0.0 to 1.0. If you want to display a percentage, you need to multiply this number by 100. You may also want to use Math.round() to convert this to an integer instead of a long floating point number.

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