According to the NativeWindow documentation (Window is a subclass of
NativeWindow ), "Closed windows cannot be reopened. If the window is
already closed, no action is taken and no events are dispatched."
Try this instead:
private var AboutWin:AboutWindow = null;
private function ShowAboutWindow():void
{
if(AboutWin == null || AboutWin.closed)
{
AboutWin = new AboutWindow();
AboutWin.open();
}
else
{
AboutWin.activate();
}
--- In [email protected], "Omar Fouad" <[EMAIL PROTECTED]> wrote:
>
> I close it by clicking "x" in the titlebar of the small window.
>
> On 6/16/08, Bjorn Schultheiss <[EMAIL PROTECTED]> wrote:
> >
> > how are you closing it?
> > On 16/06/2008, at 9:00 AM, Omar Fouad wrote:
> >
> > Why no one is answering?
> >
> > On 6/13/08, Omar Fouad <[EMAIL PROTECTED]<omarfouad.net%40gmail.com>>
> > wrote:
> > > Hi list,
> > > I got a small application that opens a window.
> > > I used another mxml (AboutWindow.mxml) file that has
<mx:WIndow>Bla bla
> > > bla<mx:WIndow/> in it.
> > >
> > > In the Main mxml file I have a button and when I click to this
button I
> > > open() it by:
> > >
> > > private var AboutWin:AboutWindow = new AboutWindow();
> > > pivate function ShowAboutWindow():void {
> > > AboutWIn.open();
> > > }
> > >
> > > This works great, when I click the button in the main
Application the
> > > AboutWin Shows, and When I close it, it closes perfectly. But if I
> > re-click
> > > the Icon again the AboutWin would not open again.
> > >
> > > Is there something that I am missing?
> > >
> > > Thanks
> > > **
> > >
> > > --
> > > Omar M. Fouad - Digital Emotions
> > > http://www.omarfouad.net
> > >
> > > This e-mail and any attachment is for authorised use by the intended
> > > recipient(s) only. It may contain proprietary material, confidential
> > > information and/or be subject to legal privilege. It should not be
> > copied,
> > > disclosed to, retained or used by, any other party. If you are
not an
> > > intended recipient then please promptly delete this e-mail and any
> > > attachment and all copies and inform the sender. Thank you.
> > >
> >
> > --
> > Sent from Gmail for mobile | mobile.google.com
> >
> > Omar M. Fouad - Digital Emotions
> > http://www.omarfouad.net
> >
> > This e-mail and any attachment is for authorised use by the intended
> > recipient(s) only. It may contain proprietary material, confidential
> > information and/or be subject to legal privilege. It should not be
> > copied, disclosed to, retained or used by, any other party. If you are
> > not an intended recipient then please promptly delete this e-mail and
> > any attachment and all copies and inform the sender. Thank you.
> >
> >
> >
> >
>
>
>
>
> --
> Omar M. Fouad - Digital Emotions
> http://www.omarfouad.net
>
> This e-mail and any attachment is for authorised use by the intended
> recipient(s) only. It may contain proprietary material, confidential
> information and/or be subject to legal privilege. It should not be
copied,
> disclosed to, retained or used by, any other party. If you are not an
> intended recipient then please promptly delete this e-mail and any
> attachment and all copies and inform the sender. Thank you.
>