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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi All! Preloader question.

Status
Not open for further replies.

whatshandle

Technical User
Feb 19, 2002
9
IL
I have one movie clip named preloader.swf and a separate on called fly.swf. Fly.swf is a swif inside an html page(in default.html). This is the actionscript for the preloader(on frame 2 in action layer):

with (*what goes in here?*) {
if (getBytesTotal() >=getBytesLoaded) {
getURL ("default.html");
}
}
I would like to know how to refer to fly.swf(between the stars) and if the syntax is correct. (frame 3 will have a "goto frame 2" action until the contdition is met).

Thanks all,

Ariel
 
If I understand you right (and I'm not sure I do to be honest ;-) ) you're trying to get one movie to load another completely separate one.

This isn't really the way the average preloader works - preloaders are part of the main movie (often in a scene to themselves) which runs until the whole file is ready to go.

Alternatively you could have one swf that loads another separate swf into the same movie (movies can have several levels each one of which can hold a single swf).

But using a movie to preload something on a different page? Don't think it can be done. Slainte

 
maybe with cash. if you load the new movie onto a layer, and preload it that way, then when it is loaded, instead of just playing it, go to a differant html page that has the freshly cached swf...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top