| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
The SharedObjectUtils class provide simple methods
to save data on the local machine.
The AS3 version don't handle remote SharedObject. It's not in its main goal.
public static function clearLocal(sCookieName:String):Boolean
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Clear all values stored in a local SharedObject.
If an error occurs the function die silently and return false.
Parameters
| sCookieName:String — Name of the cookie.
|
Returns
| Boolean — true if the data have been cleared.
|
public static function loadLocal(sCookieName:String, sObjectName:String):*
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Get a value stored in a local SharedObject.
If an error occurs the function return a null value.
Parameters
| sCookieName:String — sCookieName Name of the cookie.
|
| |
| sObjectName:String — sObjectName Field to retreive.
|
Returns
| * — The value stored in the field or null.
|
public static function saveLocal(sCookieName:String, sObjectName:String, refValue:*):Boolean
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Save a data in a local SharedObject.
If an error occurs the function die silently and no value is saved.
Parameters
| sCookieName:String — Name of the cookie.
|
| |
| sObjectName:String — Field to retreive.
|
| |
| refValue:* — Value to save.
|
Returns
| Boolean — true if the data have been saved.
|
LowRA API documentation 2008- 2009
Licensed under the MOZILLA PUBLIC LICENSE, Version 1.1
mer. févr. 25 2009, 9:22 AM GMT+01:00