Preloading parent movie clip...
function loadProgress(e:ProgressEvent):void {
var percent:Number = Math.floor( (MovieClip(parent).bytesLoaded*100)/MovieClip(parent).bytesTotal );
percentMC.percentTxt.text = percent;
}
function loadComplete(e:Event):void {
MovieClip(parent).gotoAndPlay(2);
}
loaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);
loaderInfo.addEventListener(Event.COMPLETE, loadComplete);
in my opinion, the way i have the code written makes perfect sense....but for some reason, the parent MC stays on frame one, and no preloader text is being shown.....is there something i am missing?
i am NOT loading an external SWF - however, this method has never given me issue until i migrated off of the root timeline and a little deeper into the timline...
here is the set up (for clearity)....
my root timeline has animations and is the skeleton of this particular swf....
at the end of this timeline is an MC (which we will call MC1)...inside of MC1 is another sequence of animations.....at the end of MC1's timeline is MC2...
inside MC2 is 10 frames....
the first frame has a "Stop" action on it, and another MC (which contains the preloader and the code above)...
on frame 2 of MC2 is the begining of another sequence of animations (which never gets played for some reason....thats where im stuck)...
can anyone shed any light as to why the above code is not functioning at all? no errors nothing....
