# HELP! streaming mp3's & .flv's hanging external .swf's

**URL:** <https://forum.kirupa.com/t/help-streaming-mp3s-flvs-hanging-external-swfs/125665>\
**Category:** Uncategorized\
**Created:** [October 16, 2004, 1:54am UTC](https://forum.kirupa.com/t/help-streaming-mp3s-flvs-hanging-external-swfs/125665 "2004-10-16T01:54:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ProTrigga](https://avatars.discourse-cdn.com/v4/letter/p/87869e/32.png) [@ProTrigga](https://forum.kirupa.com/u/ProTrigga)\
**Post date:** [October 16, 2004, 1:54am UTC](https://forum.kirupa.com/t/help-streaming-mp3s-flvs-hanging-external-swfs/125665/1 "2004-10-16T01:54:59Z")

</div>

please help !!

the website i’m working on is at: [http://refugeeallstars.org/v2](http://refugeeallstars.org/v2)

problem:  
My external swf’s are loading inconsistently and seem to be competing for bandwith with my streaming media (mp3’s & .flv’s). The website works fine loading wise until you manually load an mp3 or view the flv. After either of these has been clicked, the external .swf’s stop loading about 10% of the time. If the section is clicked on again - it usually appears, but for some reason the website hangs more often after either an mp3 or an flv is loaded. Note: This problem only occurs online and the website works perfectly in the authoring environment.

how it’s configured:  
The main .swf loads external .swf’s into movie clips for the content of each section. I’m using a single preloader prototype located in the main .swf which preloads the external swfs. Additionaly the main file contains an mp3 player which streams external mp3’s which are all about 1 MB. The flv is also located externally and is played from an external swf which contains a streaming media component.

heres the preload prototype:

//PRELOADER  
MovieClip.prototype.loadSWF = function(path) {  
MC\_loader.tween("\_alpha", 100, .5, “easeoutcubic”);  
MC\_loader.MC\_loadbar.\_xscale = 0;  
this.createEmptyMovieClip(“holder”, 1);  
this.holder.loadMovie(path);  
this.onEnterFrame = function() {  
totalBytes = this.holder.getBytesTotal();  
bytesLoaded = this.holder.getBytesLoaded();  
percent = Math.round(bytesLoaded/totalBytes\*100);  
MC\_loader.MC\_loadbar.\_xscale = percent;  
if (percent == 100) {  
MC\_loader.tween("\_alpha", 0, .5, “easeoutcubic”);  
delete this.onEnterFrame;  
}  
};  
};

my questions:  
is my preloader is somehow missing something codewise, which is causing the loading to hang? or is it an issue of bandwith - ie - too much stuff trying to load at once? Is it nescesarry to “quit” a stream if the section is no longer being viewed - and if so - how is this accomplished?

any word of advice would be greatly appreciated.
