# Placeholder / Movie num/ Loading

**URL:** <https://forum.kirupa.com/t/placeholder-movie-num-loading/260518>\
**Category:** flash\
**Created:** [May 16, 2008, 11:56am UTC](https://forum.kirupa.com/t/placeholder-movie-num-loading/260518 "2008-05-16T11:56:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![george2409](https://avatars.discourse-cdn.com/v4/letter/g/f9ae1b/32.png) [@george2409](https://forum.kirupa.com/u/george2409)\
**Post date:** [May 16, 2008, 11:56am UTC](https://forum.kirupa.com/t/placeholder-movie-num-loading/260518/1 "2008-05-16T11:56:04Z")

</div>

Hi,

Every-time I create an exterior SWF, I can never seem to load it into my main flash index file through a placeholder or loadMovienum.

I create the file, add a loader but when I try to open it in my main file only the loader appears without going any further - there are labels attached and it’s only a very simple code for the loader?

* * *

onClipEvent (load) {  
totalBytes = \_root.getBytesTotal();  
}

onClipEvent (enterFrame) {  
loadedBytes = \_root.getBytesLoaded();  
percentLoaded = Math.round(loadedBytes/totalBytes\*100);  
gotoAndStop(percentLoaded);  
percentLoaded\_txt.text = percentLoaded;  
if (loadedBytes == totalBytes) {  
\_root.gotoAndPlay(“home”);  
}  
}

* * *

Has anyone got any ideas.

The exterior file DOES work when played on its own in flash - just when played online and through the main index file it doesn’t work.

Thanks

G27
