metrov8
05-16-2007, 04:47 PM
Hi,
Can someone please recommend a .fla or Tutorial for creating preloaders for movies that get loaded into targets?
I've created many preloaders that work great. The preloader goes into the first scene, and when x number of frames are loaded in the Main scene, then the action takes us to the first frame of the Main scene. [Found that preloader here actually, thank you].
total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
remaining_bytes = total_bytes-loaded_bytes;
percent_done = int((loaded_bytes/total_bytes)*100);
bar.gotoAndStop(percent_done);
ifFrameLoaded ("Main", "frame100") {
gotoAndPlay("Main", "frameone");
}
But this type of preloader does not work for an external.swf that's loaded into a target on level0. When the button action takes place calling up the .swf that's loaded into the target, the preloader never shows up. Nothing shows up until the 'entire' .swf is loaded, and then, of course, it goes right to the first frame [frameone].
So, is there another way to do this? Or will this type of preloader not work with movies that are loaded into targets?
Is there another type of preloader all together that will work for this purpose.
Thanks so much for your help.
cheers
Can someone please recommend a .fla or Tutorial for creating preloaders for movies that get loaded into targets?
I've created many preloaders that work great. The preloader goes into the first scene, and when x number of frames are loaded in the Main scene, then the action takes us to the first frame of the Main scene. [Found that preloader here actually, thank you].
total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
remaining_bytes = total_bytes-loaded_bytes;
percent_done = int((loaded_bytes/total_bytes)*100);
bar.gotoAndStop(percent_done);
ifFrameLoaded ("Main", "frame100") {
gotoAndPlay("Main", "frameone");
}
But this type of preloader does not work for an external.swf that's loaded into a target on level0. When the button action takes place calling up the .swf that's loaded into the target, the preloader never shows up. Nothing shows up until the 'entire' .swf is loaded, and then, of course, it goes right to the first frame [frameone].
So, is there another way to do this? Or will this type of preloader not work with movies that are loaded into targets?
Is there another type of preloader all together that will work for this purpose.
Thanks so much for your help.
cheers