When using loadMovie, you can use the getBytesTotal and getBytesLoaded functions to check the progress of the load. This means that you can report the progress to the user with text or even a progress bar like the one used earlier in this hour.
If you want to preload a movie clip to have it ready before the user even gets to a place where it is needed, you can set up the external movie so that nothing is on the first frame but a stop() command. Then load the movie into a blank movie clip that is off the stage. When it completes, the movie just sits there on its blank first frame.
However, the movie file will be sitting in the user’s browser cache. Now when it comes time to really use the movie clip, do the loadMovie command again. The movie will be there quickly because the file has already been downloaded. Then issue a gotoAndPlay(2) command to get it past that first frame.
Taken From: Sams Teach Yourself Flashâ„¢ MX ActionScript in 24 Hours
Entries (RSS)