Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

preloader/loading.... whn using multiple flash movies

Status
Not open for further replies.

boyfromoz

Technical User
Joined
Feb 1, 2001
Messages
469
Location
AU
I'm making a page with several flash movies on the front page.

How to I make a loader that will run until all of them have loaded, then have all the movies start at the same time.

Its not feasible for me to combine the flash movies into one due to positioning of other objects on the page.
 
If you're waiting for all of them to load before you run them and they're all on the front page anyway then it might be easier just to make them movieClips instead of separate swfs and have them load with the main movie. Then they could all be started together with an action in frame 1 of the main timeline. Just use a standard preloader (there's a really good one in the FAQs from DavDesign) to wait until your main movie is ready.

Have each clip start with a blank keyframe containing a stop() action then run this to kick them off...

for(i=1;i<=4;i++){
eval(&quot;movieClip&quot;+i).gotoAndPlay(2);
}


... alternatively don't worry about the stop action and they'll play anyway :-) but with the script you could have the user press a button to launch things, or wait for a mouse move or some other element to load.
 
I agree with Wangbar.
You won't save any preloading time, if you preload all of your movies... As opposed to having several movie clips in one main movie, and preloading it on it's own.
That said, to answer your note: &quot;Its not feasible for me to combine the flash movies into one due to positioning of other objects on the page&quot;... You could easily play with the visibility and/or positioning of these mcs, to solve that problem.
If you don't have the .flas of those movies... Well that's another story!

Anyways, here's a link to a multiple movie loading (see middle of the page) tutorial with .fla:


Regards,
mywink.gif
ldnewbie
 
NOt possible to comnbine them.

The resulting movie is a huge rectangle that takes up most of the front page. When seperated, there are two small rectangles, one near the top/middle and another near the bottom/right.

I'm working in a team and need to give the bottom/left to the rest of the team to do stuff with.

I'll have a look at the multi movie tutorial.
 
Am I to understand you're embedding two players in one page?
mywink.gif
ldnewbie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top