Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var my_sound:Sound = new Sound();
- my_sound.loadSound("bass-c#.mp3", true);
- keylistener = new Object();
- keylistener.onKeyDown = function() {
- lostIsSoCool()
- }
- keylistener.onKeyUp = function(){
- lostOwns();
- }
- function lostIsSoCool(){
- my_sound.start();
- }
- function lostOwns(){
- my_sound.stop();
- }
- };
- Key.addListener(keylistener);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement