2013-01-03 48 views

回答

1

捕捉MOUSE_OVERMOUSE_OUT事件並相應地處理聲音:

button.addEventListener(MouseEvent.MOUSE_OVER, startSound); 
button.addEventListener(MouseEvent.MOUSE_OUT, stopSound); 

function startSound(me:MouseEvent):void { 
    // Start the sound. 
} 
function stopSound(me:MouseEvent):void { 
    // Stop the sound. 
} 
+0

生病試試這個。謝謝 –