how to enable a button nested in a movieclip once the playhead enter and stop on a specific frame on the root timeline?
The button nested in a movieclip has been set to false like this, and code is placed inside the movieclip.
The code on the main timeline:
stage.addEventListener(Event.ENTER_FRAME, enableBtn);
function enableBtn(event:Event):void{
if(currentFrame==21){
nav_mov.theBtn.mouseEnabled = true;
}
}
The code to set the button to false which is placed in the movieClip
theBtn.mouseEnabled = false;
The movieClip is placed on the main time line.
Thank you very much for your help.