as3中如何设置拖动,as2这样的mc.onPress=function(){startDrag(mc,false,10,100,110,100);}
来源:新能源网
时间:2024-08-17 10:15:49
热度:
as3中如何设置拖动,as2这样的mc.onPress=function(){startDrag(mc,false,10,100,110,100);}【专家解说】:mc.addEv
【专家解说】:mc.addEventListener(MouseEvent.MOUSE_DOWN,onMouseDown);
function onMouseDown(e:MouseEvent):void{
var t:Sprite = e.target as Sprite;
t.startDrag(mc,false,10,100,110,100);
}
无相关信息