A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Display Currentframe in dynamic text box doesn't work in movieclip

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    6

    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?
    Attached Files Attached Files

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    You need to provide the class file as well. If you are afraid not many users have CS6, save your file in CS5.5.
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    Junior Member
    Join Date
    Jun 2012
    Posts
    6
    Quote Originally Posted by cancerinform View Post
    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.

  4. #4
    Senior Member
    Join Date
    Jun 2008
    Posts
    549
    Try tracing out the currentFrame and check if you see any numbers.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center