Audio on/off
September 18, 2006 12:00 AM
Kocagilli, I actually did this in a course not long ago. I just put the basic functionality together in a file for you... Click Here to download the .zip The basic structure is as follows: Add these steps at the top of the course so they are inherited on every page. 1. Create a new variable called audio and set its initial value to 0. When the audio is on it will be set to 0, when it's off we'll change it to 1.2. Import your two images and uncheck the box to make them visible.3. To each image add an "on click" action to hide itself, show the other image, modify the audio variable.4. Add two onShow actions to the top that show the on button if audio is set to 0, and show the off button if it is set to 1. Now on each page you will have to:1. Import your audio, (I set mine to invisible) and tell it to autoplay.2. Set up an action on the page that onShow stops the audio if the audio variable is set to 1 (off).I hope this helps. Sorry I didn't go into a lot of detail but if you look at the example it should make sense. I personally would do all of this in flash but that may be more coding than you would like.
Discussions have been disabled for this post