| You are here : : zHome > Free Resources > Flash Tutorials & Resources > Sound On/Off Button |
Basics
Animation & Effects
Actionscript
Creating a Website New!
Miscellaneous
Flash Articles
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 | ||
|
| gotoAndStop(1); |
| gotoAndPlay(1); |
| on (release) { tellTarget ("../music") { stopAllSounds(); } } on (release) { nextFrame(); } |
| on (release) { tellTarget ("../music") { nextFrame(); } } on (release) { prevFrame(); } |
Join us on Facebook to keep updated with all the latest tutorials and web design freebies from EntheosWeb!
No portion of these materials may be reproduced in any manner whatsoever, without the express written consent of Entheos. Any unauthorized use, sharing, reproduction or distribution of these materials by any means, electronic, mechanical, or otherwise is strictly prohibited.