发布网友 发布时间:2022-04-30 00:10
共1个回答
热心网友 时间:2022-06-26 21:36
import flash.display.Shape;import flash.events.MouseEvent;
/*----------------单个的可以转为元件然后命名--mc为例---------------*/
btn0.addEventListener(MouseEvent.CLICK,moveLift)
btn1.addEventListener(MouseEvent.CLICK,moveRight)
function moveLift(e:MouseEvent ):void {
mc.x-=10
}
function moveRight(e:MouseEvent ):void {
mc.x+=10
}
是不是很简单呀