如何鎖定/停止拖動.x?請幫幫我。我想讓它看起來像一個卷軸。如何在as3中停止拖拽x?
sc_btn.addEventListener(MouseEvent.MOUSE_MOVE, fl_ClickToDrag_2);
function fl_ClickToDrag_2(event:MouseEvent):void
{
sc_btn.startDrag();
}
stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop_2);
function fl_ReleaseToDrop_2(event:MouseEvent):void
{
sc_btn.stopDrag();
}
由於
這是相關的:http://stackoverflow.com/questions/6040298/as3-how -can-i-define-boundaries-for-a-drag-able-object – Cherniv
謝謝你的建議bro – SamDeveloper