# Loading external swf problems

**URL:** <https://forum.kirupa.com/t/loading-external-swf-problems/97330>\
**Category:** Uncategorized\
**Created:** [December 20, 2003, 8:38pm UTC](https://forum.kirupa.com/t/loading-external-swf-problems/97330 "2003-12-20T20:38:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eggplant\_wizard](https://avatars.discourse-cdn.com/v4/letter/e/3be4f8/32.png) [@eggplant\_wizard](https://forum.kirupa.com/u/eggplant_wizard)\
**Post date:** [December 20, 2003, 8:38pm UTC](https://forum.kirupa.com/t/loading-external-swf-problems/97330/1 "2003-12-20T20:38:04Z")

</div>

i have a main swf with navigation and a blank movie clip where i use

\_root.content.loadMovie(“whatever.swf”);

to load the main content into the blank movie clip(content), before in flash mx i would just add

on (release) {  
\_root.content.loadMovie(“whatever.swf”);

to a button to load the content of that button into the blank movieclip on the main swf. this is not working in mx 2004, i think it has something to do with the coded in my preloader, cause this is what i have for the preloader  
in frame 1  
bytes\_loaded = Math.round(this.getBytesLoaded());  
bytes\_total = Math.round(this.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
this.loadBar.\_height = getPercent_100;  
this.loadText = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
this.gotoAndPlay(3);  
}  
in frame 2  
this.gotoAndPlay(1);  
and when i click on the button that is suppose to load the swf into the blank movie it plays the preloader again eve though the code is on (release) {  
\_root.content.loadMovie(“whatever.swf”);. any help would be greatly appreciated. thanks.
