Animation & Effects
Actionscript
Miscellaneous
Free Flash Resources
Other Flash Resources
In this tutorial you will learn how to create a simple Flash music
on and off button using Flash actionscript. Fla download is also
included.
This tutorial starts with the music on. On clicking the button music
goes off (as seen in the demo). You can start the music again at
any point during the movie.
| Demonstration | ||
|
NOTE: Keep the loop count of
your music fairly an high value and the sync should be at event.
| gotoAndStop(1); |
| gotoAndPlay(1); |
| on (release) { tellTarget ("../music") { stopAllSounds(); } } on (release) { nextFrame(); } |
| on (release) { tellTarget ("../music") { nextFrame(); } } on (release) { prevFrame(); } |
Recommended! Learn Adobe Flash CS3 with this Step By Step Video Training Course!
Hot! Flash Creative Suite 3. Create and deliver rich, internet content. Order Now!