Hi friends,
i have 4 swf
1.main.swf
2.content1.swf
3.content2.swf
4.content3.swf
on main.swf , i am using the following scripts to load external swf ( content1.swf, content2.swf & content3.swf ) dynamically with a transitions .
stop();
//initialise a variable
nextMovie="content1.swf";
//load the starting movie into level 1
loadMovieNum(nextMovie,1);
//button1 actions
button1.onRelease=function(){
//this makes sure that content 1 isn't already loaded
if(nextMovie!="content1.swf"){
//set the variable that holds the name of the movie to be loaded
nextMovie="content1.swf";
//tell the currently loaded content movie to play it's outro animation
_level1.gotoAndPlay("outro");
}
}
//button2 actions
button2.onRelease=function(){
//this makes sure that content 1 isn't already loaded
if(nextMovie!="content2.swf"){
//set the variable that holds the name of the movie to be loaded
nextMovie="content2.swf";
//tell the currently loaded content movie to play it's outro animation
_level1.gotoAndPlay("outro");
}
}
//button3 actions
button3.onRelease=function(){
//this makes sure that content 3 isn't already loaded
if(nextMovie!="content3.swf"){
//set the variable that holds the name of the movie to be loaded
nextMovie="content3.swf";
//tell the currently loaded content movie to play it's outro animation
_level1.gotoAndPlay("outro");
}
}
everything seems to working fine.
Is it possible to load the all the external swf files invisibly while browsing the website? something like multi swf preloader.
my intention is load content1.swf , content2.swf & content3.swf invisibly in the cache in advance so that it doesn’t load again & again once i click button1, button2 & button3.
any idea friends??
I have also attached the files for further reference.