# Preloaders within external .swfs

**URL:** <https://forum.kirupa.com/t/preloaders-within-external-swfs/72622>\
**Category:** Uncategorized\
**Created:** [December 7, 2004, 6:58pm UTC](https://forum.kirupa.com/t/preloaders-within-external-swfs/72622 "2004-12-07T18:58:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sleepyball](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@sleepyball](https://forum.kirupa.com/u/sleepyball)\
**Post date:** [December 7, 2004, 6:58pm UTC](https://forum.kirupa.com/t/preloaders-within-external-swfs/72622/1 "2004-12-07T18:58:25Z")

</div>

I have a .swf file that uses a basic percentage preloader:

loaded = Math.round(this.getBytesLoaded());  
total = Math.round(this.getBytesTotal());  
getPercent = loaded/total;  
this.Text = "Loading file… " + Math.round(getPercent\*100) + “%”;  
if (loaded == total) {  
this.gotoAndPlay(3);  
}

which works fine. However, when I put the file within another .swf, it doesn’t work. What could the problem be? I apologize if this question has been asked a million times before. Thanks
