# Preloader A.Script Help?

**URL:** <https://forum.kirupa.com/t/preloader-a-script-help/172185>\
**Category:** flash\
**Created:** [December 12, 2005, 8:50am UTC](https://forum.kirupa.com/t/preloader-a-script-help/172185 "2005-12-12T08:50:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jennings112](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@jennings112](https://forum.kirupa.com/u/jennings112)\
**Post date:** [December 12, 2005, 8:50am UTC](https://forum.kirupa.com/t/preloader-a-script-help/172185/1 "2005-12-12T08:50:56Z")

</div>

I have made a flash site which loads external SWF’s into a MC when u click on each button. I aint that good with AS. But i Have a preloader within my main SWF which load’s the main.swf, then goes on to play intro etc. Is it possible to adapt each button to use the orignal preloader i have already used at the begining of my main.swf to preload my external SWF’s when you click on each button within my main.swf?  
Alright On my main swf page i have my buttons with this current script on each button. If anyone is willing to help me out here & adapt this code for a mc preloader it would mean ALOT?

on (rollOver) {  
slider.yMove = home\_1.\_y;  
}

on (release) {

if (\_root.currMovie == undefined) {

\_root.currMovie = “Homepage”;  
container.loadMovie(“Homepage.swf”);  
} else if (\_root.currMovie != “Homepage”) {  
if (container.\_currentframe \>= container.midframe) {

\_root.currMovie = “Homepage”;  
container.play();

}

}

}
