Packagesekati.net
Classpublic class LocalSharedObject

LocalSharedObject provides a common "maintain local persistence, immediate write" style SharedObject to the API.



Public Properties
 PropertyDefined by
  data : Object
[read-only] Return all data contained in the shared object.
LocalSharedObject
  name : String
[read-only] Return the name of the shared object.
LocalSharedObject
  size : uint
[read-only] The current size of the shared object, in bytes.
LocalSharedObject
Public Methods
 MethodDefined by
  
LocalSharedObject(name:String)
LocalSharedObject Constructor
LocalSharedObject
  
clear():void
Purge all data from the shared objects contents and remove it from disk.
LocalSharedObject
  
destroy():void
Destroy sharedObject data and instance
LocalSharedObject
  
read(property:String):*
Read the value from a LocalSharedObject property.
LocalSharedObject
  
showSettings():void
Display the FlashPlayer local storage settings panel to the user.
LocalSharedObject
  
write(property:String, value:*):Boolean
Write a property value pair to the LocalSharedObject.
LocalSharedObject
Property detail
dataproperty
data:Object  [read-only]

Return all data contained in the shared object.

Implementation
    public function get data():Object
nameproperty 
name:String  [read-only]

Return the name of the shared object.

Implementation
    public function get name():String
sizeproperty 
size:uint  [read-only]

The current size of the shared object, in bytes.

Implementation
    public function get size():uint
Constructor detail
LocalSharedObject()constructor
public function LocalSharedObject(name:String)

LocalSharedObject Constructor

Parameters
name:String — of the local shared object
Method detail
clear()method
public function clear():void

Purge all data from the shared objects contents and remove it from disk.

destroy()method 
public function destroy():void

Destroy sharedObject data and instance

read()method 
public function read(property:String):*

Read the value from a LocalSharedObject property.

Parameters
property:String

Returns
*
showSettings()method 
public function showSettings():void

Display the FlashPlayer local storage settings panel to the user.

write()method 
public function write(property:String, value:*):Boolean

Write a property value pair to the LocalSharedObject.

Parameters
property:String
 
value:*

Returns
Booleantrue if the write was successful, false if there was not enough disk space for the write - in which case the user is prompted to allow more.