uh yeah the localshared object ;). Probably tons of wrappers out there if you need one.
On Tue, Jun 1, 2010 at 12:20 PM, Jim Andrews <[email protected]> wrote: > Saving state info to disk at the end of a program's run (so state can be > resumed on later play) is about as standard an operation in programming as > reading a value in to a variable. It's just so very commonly done. > > Therefore, there must be a very standard class for this sort of > UserDataManager. The UserDataManager, on program start, checks for a prefs > (short for 'preferences') or .sol (or whatever) file on the system (fills > the RAM var with default values if no such file exists). On program > termination, the UserDataManager writes the RAM prefs or .sol (or whatever) > file to disk. And during the running of the program, other modules > occassionally save prefs values in the RAM UserDataManager--in the > SharedObject. > > Surely there is a free UserDataManager (or some such name) class that is > commonly used as a template for reading and writing such info to disk in > Flash projects? > > ja > http://vispo.com > > ----- Original Message ----- From: "Hans Wichman" < > [email protected]> > To: "Flash Coders List" <[email protected]> > Sent: Tuesday, June 01, 2010 1:41 AM > Subject: Re: [Flashcoders] end of program event? > > > > Hi, >> >> if you use a localsharedobject it will flush automatically as the player >> quits. Intercepting the finalize/destroy etc is not possible I think. >> >> hth >> hans >> >> >> >> >> On Tue, Jun 1, 2010 at 2:04 AM, Glen Pike <[email protected]> >> wrote: >> >> Hi, >>> >>> Not sure it this is any good, but try listening for the >>> REMOVED_FROM_STAGE event in your document class? >>> >>> Failing that, you could setup some JavaScript to talk to Flash on the >>> Window.unload event, but by then Flash could have gone... >>> >>> Hope this is some help.. >>> >>> Glen >>> >>> >>> Jim Andrews wrote: >>> >>> I want to write text info to disk when the user quits the flash piece >>>> playing in the browser. >>>> >>>> Is there an event I listen to for the end of the program? What event? >>>> >>>> ja >>>> >>> > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

