Constructors

Methods

SharedObjectManager class

SharedObjectManager

extends EventDispatcher

 

 

Overview

Author

Matt Przybylski [http://www.reintroducing.com]

Version

1.1

Description

A simple utility to manage shared objects and their properties.

Constructors

 

SharedObjectManager

Usage

public function SharedObjectManager($name:String, $localPath:String = null, $secure:Boolean = false):void

Description

Creates a new instance of the SharedObjectManager class.

Parameters

$name
A string value representing the shared object to create/retrieve from the user's hard drive
$localPath
(Optional) A string value representing the path to where the shared object is stored locally
$secure
(Optional) A boolean that determines whether access to this shared object is restricted to SWF files that are delievered over an HTTPS connection

Methods

 

setProperty

Usage

public function setProperty($obj:Object):void

Description

Sets a "cookie" (property/value pair) object in the current shared object and saves it to the user's hard drive.

Parameters

$obj
An object that represents the property/value pair to be stored in the shared object

Returns

void
 

getProperty

Usage

public function getProperty($name:String):String

Description

Returns the value for the requested property.

Parameters

$name
A string that represents the name of the property you want to retrieve

Returns

String
 

clear

Usage

public function clear():void

Description

Clears the current shared object.

Returns

void