Problems in preLoader for exterior movieClips
hi
i am trying to import a swf movieClip to my main stage, but since the swf contains large scale images, a added a preloader to it,
the preloader is in each swf, but when i load the swf to the stage of my main movie clip, sometimes it works fine and loads and some other time it doesn't! Beloa is the preLoader that I am using:
stop();
addEventListener(Event.ENTER_FRAME,loading);
function loading(e:Event) {
var loaded = Math.round(stage.loaderInfo.bytesLoaded);//Download File Size
var total = Math.round(stage.loaderInfo.bytesTotal);//Total File Size
var getPercent = loaded/total;
preloading.txt.text = Math.round(getPercent*100);
if (loaded == total) {//File Download Finished Site or Project Open 2. frame
removeEventListener(Event.ENTER_FRAME,loading);
gotoAndPlay(2);
}
}
is the problem from the preloader or i have to add a code to the main swf to make it work properly?
anyone can give me a hand in solving this issue?
thanks