im making a flash game, its an original snake game.
I want to add music using a button.
What ive done was taken a button from the built in library. Ive gone into the editing mode, and on one of the keyframes, i went to properties and from the "SOUND" drop down menu i clicked on the sound that i imported. Now, when i click on the button the music plays. Is there a way to make it stop once clicked again?
Stop/Play Sound using Button
Page 1 of 11 Replies - 3278 Views - Last Post: 20 January 2010 - 09:07 PM
Replies To: Stop/Play Sound using Button
#2
Re: Stop/Play Sound using Button
Posted 20 January 2010 - 09:07 PM
onClipEvent(Release){
stopAllSounds();
}
Or
onClipEvent(Release){
mySound.stop(["idName"])
}
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote






|