Hi
When I target my main MC on the stage making it draggable, its nested MCs (its children) also becomes draggable? Is there a way to prevent this?
I have an MC called "zoo" and I use the following code:
Any way to ONLY make the parent MC draggable? (of course the nested MCs should follow the "zoo" MC when I drag it - so they should be "fixed" in the "zoo" MC).Code:Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT; var fl_DragBounds:Rectangle = new Rectangle(0, 0, 500, 500); zoo.addEventListener(TouchEvent.TOUCH_BEGIN, zoo_TouchBeginHandler); zoo.addEventListener(TouchEvent.TOUCH_END, zoo_TouchEndHandler); function zoo_TouchBeginHandler(event:TouchEvent):void { event.target.startTouchDrag(event.touchPointID, false, fl_DragBounds); } function zoo_TouchEndHandler(event:TouchEvent):void { event.target.stopTouchDrag(event.touchPointID); }
Cheers.




Reply With Quote