Preload Multiple Movies in Flash
- Started
- Last post
- 26 Responses
- junetic
if you have one movie that loads other swfs...how do you preload all the movies at once in the beginning?
- ganon0
put a preloader in each swf....
- ********0
what do you mean, that first movie preloads and then when you click on buttons that control other movies come in they preload as well?
- junetic0
but how do u preload all of them at once in the beginning?
- junetic0
i want to have one preloader bar for entire movie...so when user clicks on sections with images they do not wait for each section...am i stupid for thinking this?
- junetic0
do i HAVE to copy all my swfs into one big swf to do this?
- ********0
you don't dude, that's the idea. You preload one quickly that is a container for the others, get it?
- ********0
dude then all you do is make one preloader, LOL! ;)
- ganon0
i think a better user experiece would be to have a preloader for each swf, instead of having to wait for the entire site to download....
- junetic0
i know...i have put preloaders on separate swfs and broken up the loading...but i want to preload the main swf, and all the swfs that loads when user clicks on buttons...all at once in the beginning...am i not making any sense?...hmm
- heavyarms0
Anyone have any code or link to having one preloader in the main movie be used for all external swfs instead of having a preloader inside of each swf?
- junetic0
thats exactly what im looking for heavyarms...thanks for the clearer wording
- Mimio0
Flash MX04 has a built in preloader class object. It's awesome, does exactly what you're talking about.
- devaur0
heavyarms nailed it!
LOL
That just seemed way to frustrating.
MX04 can do this??
- junetic0
too bad i dont have mx04
- heavyarms0
I'm sure there is code available for older versions also. I've never been able to find much on it. I've started threads asking that same question before a few times also.
I'm pretty sure I could just modify my existing preloader to target an external swf instead if I spent the time to try. If I do I'll post the code difference.
- ********0
dude ok now your pissin' me off. You have one flash file that preloads, whatever else you have in it is up to you. -OR- You have one very small in size file that preloads and then once you enter the interface you click on buttons/controls to bring in other .swf's that ALSO preload. ;)
- ********0
ahhhhhhhh Anyone have any code or link to having one preloader in the main movie be used for all external swfs instead of having a preloader inside of each swf?
heavyarms my bad! I see what you want to do now, I would check macromedia.com :)
- devaur0
JAZX
ROFLOL
YOUR F-ING HILARIOUS!!
- heavyarms0
haha
I think this is how you do it with the new Pbar component:
http://www.macromedia.com/cfusio…
It's pretty interesting. If you notice there is an argument called clip to differentiate:
function(clip, bytesLoaded, bytesTotal)I don't have MX04 so would rather do it the old way if possible.
- heavyarms0
That was funny. Who was pissing you off?