...well hell, if you all actually like this, let me clean it up a bit.
 
*ahem*
 
Add this line:
 
delete popup.back_mc.onPress;
 
YEAH BABY!  Get a load o' that responsible hack, goodness!!!  Go GC, GO!
 
 
----- Original Message -----
From: superabe
Sent: Monday, September 26, 2005 5:35 PM
Subject: Re: [flexcoders] prevent drag

Nice hack! Just what i needed.
 
Thanks,
 
- superabe
----- Original Message -----
From: JesterXL
Sent: Monday, September 26, 2005 2:01 PM
Subject: Re: [flexcoders] prevent drag

Hack:
 
popup = mx.managers.PopUpManager.createPopUp(this, Title, false);
popup.back_mc.>
 
 
----- Original Message -----
Sent: Monday, September 26, 2005 1:45 PM
Subject: RE: [flexcoders] prevent drag

One way that works, but you will sacrifice your close button on the upper right is: In your popup mxml, make it a Panel instead of a TitleWindow.   

 

Other than that, you would probably have to do a centerPopUp in the stopDragging event (of the TitleWindow) to re-center the popup.

 

Dustin Mercer

 


From: [email protected] [mailto:[email protected]] On Behalf Of superabe
Sent: Monday, September 26, 2005 8:48 AM
To: [email protected]
Subject: [flexcoders] prevent drag

 

Hi All ,

Is it possible to prevent a TitleWindow initialized using the PopupManager
from being dragged ?

TIA

superabe




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to