Why don't you just refresh the page where your application is embedded?
On 30/01/07, Brent Dearth <[EMAIL PROTECTED]> wrote:
This has got to be an obvious implementation, but it's left me scratching my head. Here's my scenario: When user performs a logout in an authenticated flex application, I would like to fully re-initialize the application back to it's initial load state (as if the SWF was being accessed anew). All children components are reset, or ideally destroyed and re-created. There are portions of this application that may contain sensitive data, and thus, I'm not willing to leave it to chance by manually calling custom initialization functions on each component / sub-component / etc. I've thought about recursively iterating through the Application's children, looking for these custom methods and executing them when encountered, but there has got to be a cleaner, simpler way that I am missing. I didn't see much on the mx.core.Application documentation that was relevant, beyond accessing children properties manually. Ideas?
-- Best regards, Oleg Filipchuk

