Skip navigation
Currently Being Moderated

Activate symbol animation on button press

Mar 6, 2013 5:09 PM

I am working on a project where when a character symbol is pressed athe character starts animating. However, the animation does not play unless the button continued to be pressed down.

The character is set up as a button with the "up" and "over" columns framed respectively. The frame containing the animation for the character is framed 

 
Replies
  • kglad
    72,213 posts
    Jul 21, 2002
    Currently Being Moderated
    Mar 6, 2013 5:11 PM   in reply to vbalmori

    you should use a movieclip button instead of a simple button if you want more precise control of the way your character responds to the mouse.

     

    ie, create up, over and/or down frames.  frame 1 should be the up frame and should contain a stop().

     

    then you code your MouseEvent.MOUSE_OVER, MouseEvent.MOUSE_DOWN and MouseEvent.MOUSE_UP listeners to suit your needs.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points