# External swf preload problems

**URL:** https://forum.kirupa.com/t/external-swf-preload-problems/25165
**Category:** Uncategorized
**Created:** [July 10, 2003, 2:09am UTC](https://forum.kirupa.com/t/external-swf-preload-problems/25165 "2003-07-10T02:09:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![filmshootz](https://avatars.discourse-cdn.com/v4/letter/f/ce73a5/32.png) [@filmshootz](https://forum.kirupa.com/u/filmshootz)
#### Post date: [July 10, 2003, 2:09am UTC](https://forum.kirupa.com/t/external-swf-preload-problems/25165/1 "2003-07-10T02:09:06Z")

</div>

I have a preloader component on my external swf but when I view it from the main swf over the net nothing happens. It just shows the bar and 0kb. I have already tried changing \_root to this and \_parent but that doesn’t seem to work. Any suggestions?  
here is the code i am using:

onClipEvent (load) {  
\_parent.stop();  
this.topScale = this.\_width;  
this.\_xscale = 0;  
ft = int(\_parent.getBytesTotal()/1024);  
}  
onClipEvent (enterFrame) {  
fl = int(\_parent.getBytesLoaded()/1024);  
this.\_xscale = (fl/ft)\*this.topScale;  
\_parent.mytext.text= “LOADING “+fl+” KB OF “+ft+” KB”;  
\_parent.mytext.setTextFormat(\_parent.mtextFormat);  
//\_parent.llt = “LOADING “+fl+” KB OF “+ft+” KB”;  
if (fl == ft) {  
\_parent.gotoAndPlay(\_currentframe+1);  
play();  
}  
}
