September, 2006
In this tutorial you will learn how to insert and stop music files to the buttons you created in the "Creating Buttons" tutorial.
Open the file where you saved the button you created before.
Select the Script Panel and press the 'Add Script' button and select Events | Button | on (rollOver) from the drop-down Menu. The On (Roll Over)Event will appear and be highlighted in the 'Script' window.

Press the 'Add Script' button (or right click on the 'on (rollOver)' function) and select Sound | Play Sound from the drop-down Menu. Press the 'Import...' button and the 'Import Sound' dialog box will appear.

Select the sound you desire, in this case I choose as an example “11.mp3” after selecting the sound press Open. The filename (in this case) "11.mp3" will appear at the bottom in the audio content list. Click on the filename within that list to select it for the playSound action.
The 'Script' Panel should look like this:

Select the 'Layout' Panel tab and press the 'Play Timeline' button to test your button. When your mouse pointer rolls over the button, you should hear the sound.
Stopping Sounds
Now that you have learned to create buttons with music, its important to also create a button as I taught you before, but in this case to stop the sounds in case the visitor to your website wants to do so.
Create a button as I taught you before. Select the button and go to the script panel and press the 'Add Script' and select and select Sound | Stop Sound.

The 'Script' Panel should look like this:

Is that simple!!
Copyright (c) 2006, Beatriz Mariniello, All Rights Reserved