thebackalleys

Main => General => Topic started by: wps on April 27, 2008 12:25 PM

Title: actionscript helpp
Post by: wps on April 27, 2008 12:25 PM
ok I need some help

I want my flash to make a sound everytime you push a button.

So uhm, imagine I got a soundfile called "shit.mp3"
then I want the swf to play "shit.mp3" everytime I press "Q".


I want to make something like this (http://www.rathergood.com/buffy/)
Title: actionscript helpp
Post by: psi43 on April 27, 2008 04:44 PM
" Étienne " says:
Tell him to make a movie clip, and on frame 1, put this code
" Étienne " says:
stop();
onEnterFrame = function() {
   if(Key.isDown(81)) {
      play();
   }
}
" Étienne " says:
And on frame 2, put his sound
" Étienne " says:
Then add some frames after the sound so it doesn't play 320498 times when the user holds Q
Title: actionscript helpp
Post by: wps on April 27, 2008 04:51 PM
fucking neat thanks m8