A Flash Developer Resource Site

Results 1 to 4 of 4

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

Threaded View

  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

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