Hei, I created a slide show presentation by having my main movie loading and unloading 3 different .swf files (5,6MB, 4,6MB and 1,98MB respectively). The files contain .jpg images and audio files. I'm wondering if there is a way to load all the .swf movies from my main movie before playing them? What I do now is I put a preloader on each movie (total bytes loaded) but it still doesn't work fine. The speed is different on different computer, the images are moving too slow so the music ends in the middle of the presentation. I thought if I have all the total bytes loaded on the first frame, it would play at the same speed on every computer. Does anyone know what is the problem and how I get around it? Many thanks!! Rianti
Rianti, You can load each SWF into a separate movieClip. From the parent movie you should be able to use target.movieClipInstance.stop() to prevent the loaded SWFs from playing before you are ready. Then you can use target.movieClipInstance._visible = 0 to hide the movieclips form the stage until you are ready to show them. Then you may call functions to show, hide, or stop or play the movieClips when you want to. As for the preloader, you can use one for each movieClip as it is loading or you can loop between the first frame and the frame that loads all of the SWFs (this is a common method for showing load progress of the root movie) or you can user a preloader on a parent movieClip and load all of your SWFs in to separate child MovieClips within the parent. FYI: There are Slide presentation features in Flash MX 2004 Professional. Check your documentation for all the methods and properties of the MovieClip object. Hope that helps, -Ken Kenneth J. Toley Senior Technical Support Engineer
Don't see what you're looking for? Try a search.
|