What actionscript do I use to lets say as soon as my page loads I want to preload a few external swf’s, into the main movie, my main movie contains 1 keyframe. I hope this isnt a hard question.
Thanks every1 for their help & support.
What actionscript do I use to lets say as soon as my page loads I want to preload a few external swf’s, into the main movie, my main movie contains 1 keyframe. I hope this isnt a hard question.
Thanks every1 for their help & support.
Well, depends on where you want to place your preloader. Placing them in the external SWF is seems best for this purpose. Use this tutorial to create a preloader in your external movies. Then just use this code to load the external SWF’s (containing it’s preloader):
[AS]
//on (release){
_root.placeholder.loadMovie(“external1.swf”);
//}
//Uncomment the first and the third line if it’s on a button.
[/AS]
But, if the movie which loads the SWF is going to be loaded into another movie too, you’ll have to change _root.placeholder to a relative path.
Thanks Voet, but I want the external movie to load as soon as my main movie loads and I want to load the external swf without the user having to click any buttons.
No problem, just put the code on the frame on which you want it to load.
:: Copyright KIRUPA 2024 //--