Skip to main content
Participating Frequently
March 14, 2013
Answered

Button Hit Animation Not completing

  • March 14, 2013
  • 1 reply
  • 604 views

So when I click on a button I want a little explosion to happen in the button, where it shatters out. I have created the animation, however when i click the button i only see the animation for a second because it gets cut off by the button over. How do i make it so when there is a click, the button hit animation completes before any other button action can take place?

This topic has been closed for replies.
Correct answer Ned Murphy

Create the button as a movieclip symbol instead of as a button symbol.  Then you can control its behavior as you like.

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
March 14, 2013

Create the button as a movieclip symbol instead of as a button symbol.  Then you can control its behavior as you like.

Participating Frequently
March 19, 2013

how to I make it act as a button though? Because i want the scroll on to make a click, the actually button down to make an explosion sound and begin the explosion animation and complete that animation.

Ned Murphy
Legend
March 19, 2013

You use actionscript to control how the button behaves.  Assign event listeners for the different mouse interactions you wish to respond to and configure the event handler functions of those listeners to do the things you describe... play a sound or show an animation or both.

If you need help figuring out how to use movieclips as buttons you should search Google using terms like "AS3 movieclip buttons tutorial" and similar terms.