var mySoundReq:URLRequest = new URLRequest("Audio/wissel.mp3");
var mySound:Sound = new Sound();
var mySoundChannel:SoundChannel = new SoundChannel();
mySound.load(mySoundReq);
play_btn.addEventListener(MouseEvent.CLICK, playSound):
stop_btn.addEventListener(MouseEvent.CLICK, stopSound):
function playSound void {
mySoundChannel = mySound.play();
}
function playSound void {
mySoundChannel = mySound.play();
}
No comments:
Post a Comment