0
은 내가플래시 드래그 이상한 행동
난 단지 무비 클립의 내부 부품을 끌어 전체가 아닌 무비 클립 수 드래그 할 (그 안에 텍스트 및 기타 무비 클립에) 멋진 동영상 클립이 있습니다.
내 작동하지 예 :
http://www.internetmotors.lv/temp/testgame_5.swf
http://www.internetmotors.lv/temp/testgame_5.fla (CS5)
코드 :
은 내가 사용할 필요가 보인다
drag_1.addEventListener(MouseEvent.MOUSE_DOWN, clickToDrag);
function clickToDrag(event:MouseEvent):void
{
event.target.startDrag();
}
stage.addEventListener(MouseEvent.MOUSE_UP, releaseToDrop);
function releaseToDrop(event:MouseEvent):void
{
event.target.stopDrag();
}
예, 정확하게 말하자면, drage_1의 내용을 mouseevents에 액세스 할 수 없게하면 수정하지 않고 코드가 작동합니다. 이는 "용기"가 mouseevent를 하이재킹했기 때문입니다. 그래서 drag_1.mouseChildren = false; –