Preloading An SWF Movie Into Browser Cache Prior to Playing

I have two pages, each html containing a Flash movie. The movie contained in the first, an intro page, ends with an instance of getURL(); which redirects to the second, the Web site's home page. I'd like to find a way to cause the second page's swf movie to preload, or download into browser cache, while the first movie is playing so as to avoid any preloading lag time when the intro page switches to the home page. I've accomplished this, but there is still a problem. There is an audio file which is invoked by the second movie. While I can load the second movie by embedding it into the first html page with width and height dimensions of 0%, thus causing it not to display, I can't stop it from playing its linked audio file. Is there a way to cause an swf movie to download into a browser's cache, so that it is loaded and ready to be played, without immediately playing it?
Jonathan GreenbergAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ZefferCommented:
you're just about there

preload the audio file as an event sound .. not streaming..put the loading code on the first frame of the second clip..then it will load with the movie ..

eg
this.loadSound( "http://serverpath:port/mp3filename", false);

and say it's linked name is:audio1

onClipEvent (load) {
      audio1 = new Sound();
      audio1.setVolume(0);
}

on the frame where you want to call the audio.. change the volume back to 100

onClipEvent(enterFrame){
audio1.setVolume(100);
audio1.start();

Z
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dushan De SilvaTechnology ArchitectCommented:
after first movies' preloading finishes, while first movie starts to play, then loadsecond movie aslo in to the first movie with diferent LEVEL. But put second moive disable until first movie finishes. And in the second movie's first frame also we can put stop(), until first movie finishes.

BR Dushan
0
Dushan De SilvaTechnology ArchitectCommented:
0
Jonathan GreenbergAuthor Commented:
Thank you all.  Zeffer, yours is the solution that best suited the needs of my situation. I've not yet implimented it, but I suspect it will do the trick. Thanks again.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.