How can I stop dragable function?
Hi,
If you are specifically talking about the TitleWindow, you can use;
myWindow.isPopUp = false;
This will not allow the window to be dragged. Check the source code in
Panel and you will see an if() statement blocking the drag behavior if
the isPopUp
-
From: Teoti Graphix, LLC
To: flexcoders@yahoogroups.com
Sent: Monday, July 06, 2009 9:55 PM
Subject: [flexcoders] Re: How to disable TitleWindow dragable
How can I stop dragable function?
Hi,
If you are specifically talking about the TitleWindow, you can use
Yes,it works. But I wanna enable dragable function when clicked this
titlewindow. If I set isPopUp = false; the mouseClickEvent can't be catched so
I can't interact with users. I just wanna to disable this ability temporary. Is
there a wish way to achieve this ?
在2009-07-06,Teoti Graphix,
Yes as I replied in your original post man:
Create a custom component that extends TitleWindow and override the
startDragging() method:
override protected function startDragging( event:MouseEvent ):void {};
You can leave it as it is above to simply stop dragging or add logic
according
4 matches
Mail list logo