please help !!
the website i’m working on is at: 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.