I’m trying to create a button that functions a bit differently depending on which frame the playhead is located. Below is my code. Obviously, the property “FRAME” is undefined. How do I define that property as the current location of the playhead (ie which frame in the timeline we are currently on)
function AudioControl(evt:Event):void{
if (FRAME < 215){
function AudioOff(evt:Event):void{
gotoAndStop("End");
}
}else{
function AudioOn(evt:Event):void{
gotoAndPlay("Start");
}
}
}
bAudioControl.addEventListener(MouseEvent.CLICK, AudioControl);
Thanks for any help or suggestions!!!