先要给按钮一个实例名。如play_btn,然后代码在下面。play_btn.addEventListener(MouseEvent.CLICK,_play)function _play(e:MouseEvent){play()}
为按钮添加代码 就这么简单