# SWF with preloader won't load! WHY?!?

**URL:** <https://forum.kirupa.com/t/swf-with-preloader-wont-load-why/121828>\
**Category:** Uncategorized\
**Created:** [September 7, 2004, 7:23pm UTC](https://forum.kirupa.com/t/swf-with-preloader-wont-load-why/121828 "2004-09-07T19:23:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![worldsound](https://avatars.discourse-cdn.com/v4/letter/w/ee7513/32.png) [@worldsound](https://forum.kirupa.com/u/worldsound)\
**Post date:** [September 7, 2004, 7:23pm UTC](https://forum.kirupa.com/t/swf-with-preloader-wont-load-why/121828/1 "2004-09-07T19:23:58Z")

</div>

I can’t load external movies.

I have my index.swf and i have a space to load an external swf called “photos.swf”. I have created, inside index.swf, an empty Movieclip and I’ve named it “load\_movie\_photos”. In a frame in the main timeline of the index.swf I used the code:

loadMovie(“photos.swf”, “load\_movie\_photos”);

In the “photos.swf” I have a scene with a preloader and a scene with the content, called “photos\_content”. In the preloader I have this code:

bytes\_loaded = Math.round(\_root.getBytesLoaded());  
bytes\_total = Math.round(\_root.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
\_root.loadBar.\_width = getPercent_100;  
\_root.loadText = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
gotoAndStop(“photos\_content”, 1);  
}

When I test my index.swf it doesn’t load the external photos.swf

But if I erase the scene with the preloader from the photos.swf it loads it in index.swf without problems.

What’s happening?

😑
