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 to your needs!

Cheers,

Simon @newtriks.com

On 6 Jul 2009, at 15:50, j2me_soul wrote:




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, LLC" <[email protected]> 写道:


> 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 property is false.

Panel : line 2096

Mike




200万种商品,最低价格,疯狂诱惑你



Reply via email to