Formatted for ActionScript with the GeSHI Syntax Highlighter [copy or print]
var snd:MySound1= new MySound1(); soundbutton_MC.addEventListener (MouseEvent.CLICK, soundbutton_Handler); function soundbutton_Handler (e:MouseEvent):void { snd.play(); }
I have the sound-effect in my Adobe Flash's library ... where should I put it and how to make the script know to play that one?







Logged






