website promotion banner
eturnkeys
Your Ad Here
Flash & Swish  Home Flash & Swish Swish Tutorials Add Sound to a Button
rss

Add Sound to a Button

Author: Craig Lowe More by this author


Example:

Click on the button above to see the example working.

Now open SwishMax and create your button , see fig.1 below.

image 1

Fig.1

If you wish to give your button separate over and down states do that now.

Now to add an action to your button click on the script tab, then click the Add Script button followed by Events

Now click Button followed by on (rollover) see fig.2 below.

image 2

Fig.2

You now have the on (rollover) button action associated with your button

Now for adding the the sound for the on (rollover) action to play

Click on Add Script this time Sound followed by playSound(...).

A new window will open up, just browse for the sound you wish to play,

And double click to assign the sound to the action see fig.3 below.

image 3

Fig.3

Repeat the process to add sound for the onPress function, you will see the sounds added to your contents list.

image 4

When you have finished adding the sounds for the different action press Ctrl + T to test it works.




Rate this Material: Bad 1 2 3 4 5 Excellent
print this page tell a friend subscribe to newsletter subscribe to rss

Add comments to "Add Sound to a Button"