I have stoped every event. But the problem is still there.
Did I miss something ?
addEventListener(DragEvent.DRAG_ENTER, stopDragableHandler);
addEventListener(DragEvent.DRAG_START, stopDragableHandler);
addEventListener(DragEvent.DRAG_COMPLETE, stopDragableHandler);
addEventListener(DragEvent.DRAG_DROP, stopDragableHandler);
addEventListener(DragEvent.DRAG_EXIT, stopDragableHandler);
public function stopDragableHandler(event:DragEvent = null):void
{
event.stopPropagation();
event.stopImmediatePropagation();
}
----- Original Message -----
From: Sefi Ninio
To: [email protected]
Sent: Monday, July 06, 2009 3:43 PM
Subject: Re: [flexcoders] How to disable TitleWindow dragable
Catch mouseEvent.DRAG_START, and in the handler stop it's propagation.
(event.stopImmediatePropagation)
Do the same for mouseEvent.DRAG_STOP.
On Mon, Jul 6, 2009 at 10:32 AM, claudiu ursica <[email protected]> wrote:
Do you mean that the Title window cannot be dragged anymore?
C
----------------------------------------------------------------------------
From: j2me_soul <[email protected]>
To: flexcoders <[email protected]>
Sent: Monday, July 6, 2009 10:16:21 AM
Subject: [flexcoders] How to disable TitleWindow dragable
How can I stop dragable function?
----------------------------------------------------------------------------
200万种商品,最低价格,疯狂诱惑你