This is not silly question,I come accross the situation myself when creating
online game with flash 8.0.I try to find the solution , but its seems that you
can't controll the browser in the client .I'm using the sharedobject to handle
this, but it means that you have to save all the state and the variable.Since
my game don't have many state and variable i guess its ok with the
sharedobject.I wonder if flex can handle this situation.
Date: Mon, 12 Mar 2007 03:06:14 -0700To: [EMAIL PROTECTED]: [EMAIL PROTECTED]:
Mon, 12 Mar 2007 10:04:19 +0000Subject: [flexcoders] How to handle the F5
browser refresh for a Flex application
Hi All,
This may be a very silly question, but I am stuck on this and can not
find a suitable solution, please advise.
I have an application where the first screen is a login screen, when
a user logs in he is redirected to a diferent view based on the users
login permissions etc. The problem is whenever we hit the F5 browser
button the wrapper file is refreshed and the embeddd swf (flex app)
is reloaded reinitializing all the application variables etc. This
takes the screen view back to the default login screen although the
user is logged and all values are lost.
How can I handle this?
I tried using shared objects but this would meen storing every value
in shared object. Is there any easier way out? Any configuration
change etc. Do we need to disable the F5 key press using javascript
etc. ?
Please advise.
Regards,
Paromita
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces.
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us