Search tutorials
How to Use a Single Button both to Start and Stop a Sound Object |
I've been asked a few times how to use the same button to toggle the sound on and off. Here is the code for that:
on(release) { // Be sure to change "mySound" to the name of your sound object. |
| » Level Intermediate |
|
Added: 2004-10-12 Rating: 8 Votes: 31 |
| » Author |
| Kenny Bellew is a technical writer and freelance flash programmer who specializes in Flash audio. He lives in Minneapolis, MN. |
| » Download |
| Download the files used in this tutorial. |
| Download (12927 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!