Re: [flexcoders] Override mx:Window close function

2008-10-16 Thread Nick Collins
Thanks! That did it. On Thu, Oct 16, 2008 at 11:16 AM, Michael Schmalle <[EMAIL PROTECTED]>wrote: > Hi, > If I remeber correctly, you need to listen for window closing event and > call event.preventDefault(). > > This will stop the default behavior and then allow you to hide the window, > setti

Re: [flexcoders] Override mx:Window close function

2008-10-16 Thread Michael Schmalle
Hi, If I remeber correctly, you need to listen for window closing event and call event.preventDefault(). This will stop the default behavior and then allow you to hide the window, setting the visible or whatever implementation you have. Mike On Thu, Oct 16, 2008 at 12:11 PM, Nick Collins <[EMAIL

[flexcoders] Override mx:Window close function

2008-10-16 Thread Nick Collins
I'm attempting to override a mx:Window's response to a close, so that if someone closes the window, it only hides it. The use case is that it's a properties window that can then be reopened when they select another element. The problem, of course, is that once a window has been closed you cannot re