# Simple loader fails when loading in an .swf containing the loader

**URL:** <https://forum.kirupa.com/t/simple-loader-fails-when-loading-in-an-swf-containing-the-loader/230537>\
**Category:** Uncategorized\
**Created:** [June 27, 2007, 1:35am UTC](https://forum.kirupa.com/t/simple-loader-fails-when-loading-in-an-swf-containing-the-loader/230537 "2007-06-27T01:35:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ohls](https://avatars.discourse-cdn.com/v4/letter/o/59ef9b/32.png) [@Ohls](https://forum.kirupa.com/u/Ohls)\
**Post date:** [June 27, 2007, 1:35am UTC](https://forum.kirupa.com/t/simple-loader-fails-when-loading-in-an-swf-containing-the-loader/230537/1 "2007-06-27T01:35:11Z")

</div>

Sorry for the complicated topic. I got a .swf that loads in other .swfs. Rather than figuring out how to make a loader for loading .swfs I thought I’d just use a simple loader in the .swf I’m loading.

However, it doesn’t work. It starts fully loaded but doesn’t finish. Heres the AS:[AS]\_root.stop();  
PercentLoaded = \_root.getBytesLoaded()/\_root.getBytesTotal()\*100;  
if (PercentLoaded != 100) {  
bar.\_xscale = PercentLoaded;  
} else {  
\_root.play();  
}  
[/AS]

Anyone got a clue? Or would anyone be willing to point me in the direction for a \*very \*simple .swf loader.

thanks!
