Hi folks
I have this code (AS 2.0 / FLASH 8) for loading swf from an array, and it works great except one little thing. The lodaded swfs reloads after one second and then it plays like normal. I have placed the start and stop attribute to ensure that the swf doesn’t start before its fully loaded, but then this happens. Can anyone explain what I am doing wrong? Thanks!
function loadSwf(sceneSelect){
this.loader.loadMovie(scenes[sceneSelect]);
this.onEnterFrame = function(){
if(this.loader.getBytesLoaded(scenes[sceneSelect]) == this.loader.getBytesTotal(scenes[sceneSelect])) {
this.loader.play();
this.loader._visible = 1;
delete this.onEnterFrame;
}
else {
this.loader.stop();
this.loader._visible = 0;
}
}
};
/NB21