as3中如何設(shè)置拖動,as2這樣的mc.onPress=function(){startDrag(mc,false,10,100,110,100);}
來源:新能源網(wǎng)
時間:2024-08-17 10:15:49
熱度:
as3中如何設(shè)置拖動,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);
}
熱門標簽:
無相關(guān)信息