i’ve searched the forum and google but didn’t really come up on anything solid except for this:
http://www.flash-creations.com/notes/dynamic_loadjpg.php
my as experience is ok but not enough to dissect it in order to do what i want to do.
i have a few swf’s that i’d like to preload before playing a slide show.
imgMC is the name of an empty mc that’s on the stage where the pic_??.swf files will be loaded into.
what happens is that it will preload the first swf and play, once that swf file is done playing, the slide show it will preload all over again the next swf file.
can someone please help with a solution on how to preload all of the swfs before if begins the slide show?
ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#000000]**function**[/COLOR] proceed [COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000FF]onEnterFrame[/COLOR] = [COLOR=#000000]**function**[/COLOR] [COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000FF]if[/COLOR] [COLOR=#000000]([/COLOR]imgMC.[COLOR=#0000FF]getBytesLoaded[/COLOR] [COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR] != imgMC.[COLOR=#0000FF]getBytesTotal[/COLOR] [COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
progressbar.[COLOR=#0000FF]_xscale[/COLOR] = [COLOR=#000080]100[/COLOR] * imgMC.[COLOR=#0000FF]getBytesLoaded[/COLOR] [COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR] / imgMC.[COLOR=#0000FF]getBytesTotal[/COLOR] [COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#000000]}[/COLOR] [COLOR=#0000FF]else[/COLOR] [COLOR=#000000]{[/COLOR]
startSlide [COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#0000FF]delete[/COLOR] [COLOR=#0000FF]onEnterFrame[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR];
[COLOR=#000000]}[/COLOR]
[/LEFT]
[/FONT]
this is how my pic array is set up.
ActionScript Code:
[FONT=Courier New][LEFT]pictures = [COLOR=#000000][[/COLOR][COLOR=#FF0000]"pic_1.swf"[/COLOR], [COLOR=#FF0000]"pic_2.swf"[/COLOR], [COLOR=#FF0000]"pic_3.swf"[/COLOR][COLOR=#000000]][/COLOR];
[/LEFT]
[/FONT]
also can this be done using the MovieClipLoader?
any help will greatly be appreciated.