Groups > Multimedia > Macromedia rich int apps > Re: Clear Shared Object on X click of Browser




Clear Shared Object on X click of Browser

Clear Shared Object on X click of Browser
Tue, 16 May 2006 09:35:10 +000
How to click shared object in flex 1.5 when user clicks browser's X button.

Thanks in Advance!

Post Reply
Re: Clear Shared Object on X click of Browser
Tue, 16 May 2006 16:30:50 -070
Let me try to understand what you are asking for. You want to save some 
state in the sharedObject when the browser has been closed. So what you are 
looking for is an event that fires when the browser closes. Unfortunately no 
such event exists in Flex. Instead, you should code your application to 
either periodically save your state or to save your state based on some user 
interaction (ie. pressing the Save button).

Another option is to listen for the Close event in your browser using 
Javascript. Then communicate to the your Flex application using the Flash 
player's fscommand API.

-- 
Jason Szeto
Adobe Flex SDK Developer


"TIPLVinay" <webforumsuser@macromedia.com> wrote in message 
news:e4c6ce$2si$1@forums.macromedia.com...
> How to click shared object in flex 1.5 when user clicks browser's X 
> button.
>
> Thanks in Advance!
>
> VINAY 

Post Reply
about | contact