Copy link to clipboard
Copied
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?
Create the button as a movieclip symbol instead of as a button symbol. Then you can control its behavior as you like.
Copy link to clipboard
Copied
Create the button as a movieclip symbol instead of as a button symbol. Then you can control its behavior as you like.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now