1 Attachment(s)
Display Currentframe in dynamic text box doesn't work in movieclip
Hi all,
I know how to make a dynamic text box and show the current frame number in it in a simple Fla. However now in my more complex Fla I can't get it to work.
I included Flash CS6 fla file (hopefully there are already more people with Flash CS6)
In the Moveclip 'AT_MOVE' there is a dynamic textbox instance called 'altframe' where I want to display the current frame number of AT_MOVE. The dynamic text box is animated with a Tweeen.
Actionscript Code:
addEventListener(Event.ENTER_FRAME,myFunction);
function myFunction(event:Event) {
altframe.text = String(currentFrame);
}
Do I need to add something like AT_MOVE.altframe or something like that somewhere?