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?
You need to provide the class file as well. If you are afraid not many users have CS6, save your file in CS5.5.
Sorry I forgot to mention that I'm using Greensock TweenMax class for the animations. However, except for the output errors, the animation should also work without the class files.
I cannot include the TweenMax class files in it since it exceeds the forum attachment limits.