# External preloader +swf reloading Main swf - help

**URL:** <https://forum.kirupa.com/t/external-preloader-swf-reloading-main-swf-help/327855>\
**Category:** flash\
**Created:** [April 1, 2012, 9:56pm UTC](https://forum.kirupa.com/t/external-preloader-swf-reloading-main-swf-help/327855 "2012-04-01T21:56:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MAGG0T](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@MAGG0T](https://forum.kirupa.com/u/MAGG0T)\
**Post date:** [April 1, 2012, 9:56pm UTC](https://forum.kirupa.com/t/external-preloader-swf-reloading-main-swf-help/327855/1 "2012-04-01T21:56:25Z")

</div>

I have an External Swf with its own Preloader that is loaded into my Main swf,  
It works fine when i am testing it in Macromedia Flash 8 However when i upload all of it to my site and i click the button that loads the External swf in to my main swf it loads the hole main swf again and not the external swf.  
(Please NOTE i load the external swf into a MC ‘‘myContainer2’’ on the main swf)  
Here are my codes:  
External Preloader

onClipEvent (enterFrame)  
{  
percent = Math.floor(\_root.getBytesLoaded() / \_root.getBytesTotal() \* 100);  
gotoAndPlay(percent);  
if (\_root.getBytesLoaded() \>= \_root.getBytesTotal())  
{  
\_root.gotoAndPlay(2);  
} // end if  
}

I have tried adding \_root.myContainer2.gotoAndPlay(2); (It didn’t work)

Button on MAIN swf that loads to external swf:

on (release)  
{  
loadMovie(“rings.swf”, \_root.myContainer2);  
}

Anyone know what im doing wrong ?  
Help would be a great help ;D thanks in advance.
