# Any way to include preload of external movies within the main movie?

**URL:** <https://forum.kirupa.com/t/any-way-to-include-preload-of-external-movies-within-the-main-movie/173044>\
**Category:** Uncategorized\
**Created:** [December 20, 2005, 5:47pm UTC](https://forum.kirupa.com/t/any-way-to-include-preload-of-external-movies-within-the-main-movie/173044 "2005-12-20T17:47:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tikwik](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@tikwik](https://forum.kirupa.com/u/tikwik)\
**Post date:** [December 20, 2005, 5:47pm UTC](https://forum.kirupa.com/t/any-way-to-include-preload-of-external-movies-within-the-main-movie/173044/1 "2005-12-20T17:47:36Z")

</div>

hi everyone,

i currently have a movie (main\_movie.swf) with a preloader taken from this tutorial: [http://www.kirupa.com/developer/mx/percentagepreloader.htm](http://www.kirupa.com/developer/mx/percentagepreloader.htm)

it preloads the main movie, but i need it to also preload an external movie (the whole thing is designed in such a way that it will look bad to have a separate preloader bar show up before the external movie comes in, and i can’t combine the two either).

does anyone know how to edit the actionsript for the preloader which sits in main\_movie.swf (shown below) to also load an external movie (section2.swf)???

frame 1:

bytes\_loaded = Math.round(this.getBytesLoaded());  
bytes\_total = Math.round(this.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
this.loadBar.\_width = getPercent_100;  
this.loadText = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
this.gotoAndPlay(3);  
}

frame 2:

this.gotoAndPlay(1);

thanks! i would so appreciate anyone’s help!
