Ever wanted
to pause at the best bit in your animation? Or maybe let the
viewer pause, and look in detail at your well crafted
animation? Well in this tutorial, I shall be showing you how
to add a Pause, and play button into your animation!
[This is what you will be creating]
How To Make It Happen

[ Try to
stay only within the animations layer for your designs]
[*If you are not following the .FLA File , You should create two buttons called Play and Pause]
- on (press) {
- stop();
- }
- on (press) {
- play();
- }
Congratulations! You have just
incorporated buttons into your animation!
The Theory
What this does, is it tells the animation to stop on it's current frame. OnRelease tells us that, when the button is released, it will do the next command. The next command is Stop(); which tells it to stop on the current frame.
This tells the movie to play again. As explained above, OnRelease tells the button that, once it is released, it should do the next command. Play(); tells the animation that it can start to run again.
|
|
Note | |
|
||
You can download the final source also:
|
Hope you enjoyed the tutorial, and for extra advice,
try the kirupa.com forums.
Thanks for reading!
|
|
Blabj By Default |
Just a final word before we wrap up. What you've seen here is freshly baked content without added preservatives, artificial intelligence, ads, and algorithm-driven doodads. A huge thank you to all of you who buy kirupa's books, became a paid subscriber, watch the videos, and/or interact on the forums.
Your support keeps this site going! 😇
:: Copyright KIRUPA 2026 //--