# Problem with preloaders in external files

**URL:** https://forum.kirupa.com/t/problem-with-preloaders-in-external-files/155742
**Category:** Uncategorized
**Created:** [July 20, 2005, 1:08am UTC](https://forum.kirupa.com/t/problem-with-preloaders-in-external-files/155742 "2005-07-20T01:08:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![hoteurochick](https://avatars.discourse-cdn.com/v4/letter/h/6f9a4e/32.png) [@hoteurochick](https://forum.kirupa.com/u/hoteurochick)
#### Post date: [July 20, 2005, 1:08am UTC](https://forum.kirupa.com/t/problem-with-preloaders-in-external-files/155742/1 "2005-07-20T01:08:58Z")

</div>

[color=black] **OK i figured out my problem. all works now. Thanks anyhow!** [/color]

[size=1]I prepared 3 swf files - each with sound in it- tested in browser they work “fine”, preloader shows up, then music began to play. [/size]

[size=1]problem when i link them into a movie - that movie has a preloader itself, since includes attached sound(perhaps would be better replace attached with another swf playing onLoad), and that movie has 3 music buttons - on click 1,2,3 should downlad track 1, 2, or 3 (each on different swf file). [/size]

[size=1] **Problem: after a click - preloader shows up - frozen, and uncomplete - and no sound plays.** [/size]

**[size=1]main movie - each button (purple if sound button):[/size]**

[size=1]on (release) {[/size]  
[size=1][color=darkorchid]stopAllSounds();[/color][/size]  
[size=1]\_root.contents.[color=#000084]loadMovie/color;[/size]  
[size=1]}[/size]

[size=1]**main movie preloader (when main movie opens it works just fine):** [/size]

[size=1]bytes\_loaded = Math.round(\_root.getBytesLoaded());[/size]  
[size=1]bytes\_total = Math.round(\_root.getBytesTotal());[/size]  
[size=1]getPercent = bytes\_loaded/bytes\_total;[/size]  
[size=1]\_root.loadBar.\_width = getPercent_100;[/size]  
[size=1]\_root.loadText = Math.round(getPercent_100)+"%";[/size]  
[size=1]if (bytes\_loaded == bytes\_total) {[/size]  
[size=1]\_root.gotoAndStop(4);[/size]  
[size=1]}[/size]

[size=1]In that movie i have another empty movie with another group of buttons to load external text files. They have no preloaders and work fine.[/size]

**[size=1]external movies:[/size]**

[size=1]I tried to replace \_root with \_parent in external swfs , [/size]  
[size=1]where in main movie:[/size]

[size=1]on (release) {[/size]  
[size=1]stopAllSounds();[/size]  
[size=1]container.loadMovie("[color=deepskyblue]sound\_2\_mov[/color].swf"); [/size]

**[size=1]and preloader in external too… etc[/size]**
