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

Preloading a new .swf and the frames of the main movie simultaneously?

Status
Not open for further replies.

kimraznov

Programmer
Oct 16, 2000
31
US
test site...

I have a preloader on frame 1 that loads the total frames of the main movie[main.swf] and when loaded tells main.swf to go to and play 2.

On the last frame of main.swf is also an action that replaces main.swf on level 0 with a new .swf[portrans2.swf]. I do this so i can change the frame rate from 36 to the standard 12 fps.

The problem is, I dont think the preloader is caching portrans2.swf, because when i upload it and test it in the browser there is a delay between the main.swf and portrans2.swf.

This is on a dsl connection.

My question is, how can i preload portrans2.swf on frame 1 of main.swf even though it will not play until the last frame of main.swf.
 
just load it normaly but set it's value to visible=false..that way if it loads before the last frame it's invisible until the last frame you set it back to visible=true..

might work..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
nevermind..if it loads before the last frame in which you want it to, the fps will change before you want them to(which i don't think will work, because i thought that the loaded movie takes the fps of the movie it's loaded into)even if it's set to visible=false..if in fact it does work...

logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Think if you preload it, it will necessarily take the framerate of the main movie, defeating your purpose of changing the framerate. So you might be stuck with that delay on the first pass. Add a preloader to the to be loaded movie, to fill in that gap on the first pass, cause once it has downloaded in the user's cache, there shouldn't be anymore delay on subsequent visits.

Regards,
wink4.gif
ldnewbie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top