PDA

View Full Version : Spacebar to stop sounds


Governator
03-17-2007, 05:52 PM
How do you add Spacebar to stop sounds for a soundboard? What kind of code do you add? I have Flash 8, is that good enough? thanks.

JerkyMyTurky
03-17-2007, 06:26 PM
Just make a regular button and title it "stop" or "stop all sounds". Highlight/click the button and open up the "Actions" box. In Actions paste this code:

on (release, keyPress"<space>") {
stopAllSounds ();
}

That should do the trick.

Governator
03-20-2007, 02:52 AM
ok I'll try that, thanks