code:
btnPlay.visible = true; btnStop.visible = false;
//
btnPlay.addEventListener(MouseEvent.CLICK, onClickPlay);
btnStop.addEventListener(MouseEvent.CLICK, onClickStop);
function onClickPlay(e:MouseEvent){
btnPlay.visible = false;
btnStop.visible = true; } function onClickStop(e:MouseEvent){
btnPlay.visible = true;
btnStop.visible = false; }