The quiz questions are designed to test your knowledge of the material covered in this hour . The answers to the questions follow.
How much of a Flash movie normally needs to load before it starts?
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.
What are two ways to determine whether a movie is completely loaded?
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.
What file formats must you use for sounds and images to load them dynamically?
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.
Using getBytesTotal and getBytesLoaded , how do you determine the percentage of the movie loaded?
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.