PDA

View Full Version : Preload?


Xenith
01-20-2005, 08:45 PM
Can anyone tell me how I can start loading one swf into a computers memory while another one is playing?

I have an Intro movie that is 119KB and a main movie which is 975KB

*I know most would say to split it, but in a survey of members, most said they would prefer to have one longer wait to a bunch of shorter waits...*

Anyays at the moment they are in their own swf/html file though I can combine them if necessary? So can anyone help me to start loading the main movie in memory while the intro is playing, *when the intro is done, I want it to then go to the main movie, whether that is in a loading state or finished loading*

cannon303
01-21-2005, 10:38 AM
not sure what you mean? Do you have 2 separate movies, 1(intro) plays in an html page then when that's done it get's replaced by the main movie? if so you could combine the 2 together and have them in seperate scenes or keep them as separate movies and use the loadMovie("mainMovie", level or target) action in your intro movie.

Xenith
01-21-2005, 05:42 PM
At the moment I have them as two separate HTML pages but can combine them. Unfortunately I'm a bit of an actionscript newb when it comes to stuff like LoadMovie


At the moment I have these 2 files

TrIntro.swf ------> 119KB

TrMain.swf ------> 975KB


So what exactly do I have to do to have the TrMain.swf movie start to load in the background while the TrIntro.swf file is playing?

thanks so much in advance for your help

cannon303
01-21-2005, 10:26 PM
right i think i understand - you just need your browser to have your second movie cached so that when the user navigates to it , it plays straight away. I'm not sure why you are using 2 separate web pages to do this and maybe i need to see the example but if you use the loadMovie("nameofmovie.swf",1)this will start loading your movie. the only problem is that your second movie will load on top of your first movie in level "1" as your first movie by default will be level "0". Maybe create an empty movie clip off screen so if your first movie is 100px by 100px create an empty mc and place it say 200px by 200px (out of sight of the stage), give it an instance name of say "placeHolder", then in your frame use loadMovie("nameofmovie.swf", placeHolder). This will start loading your second movie and your browser in theory should cache it, however without seeing it i'm sure you probably need to do it differently.