Thought I did some tests proof this, I just want to make sure:
No matter where the EnterFrame event is registered, the frame would not be rendered after the EnterFrame event handler done in each frame.
For example, I have two unrelated MovieClips:
oneMC.addEventListener(Event.ENTER_FRAME, tick);
function tick(event:Event):void {
if (otherMC.currentFrame == 20) {
otherMC.gotoAndPlay(5);
}
}
The frame #20 of “otherMC” will never be rendered on the stage, right? Is there any documentation for this logic? I did not find some good reference from the ActionScript guide.
Thanks for convincing me in advance!