--- In flexcoders@yahoogroups.com, "Paul Andrews" <[EMAIL PROTECTED]> wrote:
>
> ----- Original Message ----- 
> From: "stephen50232" <[EMAIL PROTECTED]>
> To: <flexcoders@yahoogroups.com>
> Sent: Friday, December 08, 2006 2:17 PM
> Subject: [flexcoders] Clearing panels before changing state
> 
> 
> > Hi,
> >
> > In my application when the user clicks the log out button, the
> > currentState is changed, but before that I'd like to be able to clear
> > all the TitleWindows that my still be opened by the user.
> >
> > Is there a way to force all the TitleWindows to close before changing
> > the state?
> 
> How about issuing a custom LOGOUT event that the windows can respond to?
> 
> Paul
> 
> > Thanks
> >
> > Stephen
> >
> >
> >
> > --
> > 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
> >
> >
> >
> >
>
Hi,

I do have a logout event, which is being listened for in the main
application (main.mxml) page, this the runs another method which
changes the currentState to the login state, but if any other panels
are open then they say open when the state changes.

I could have all panels listen out for that event and close when they
see the event being called?



Reply via email to