Constructors

Methods

SharedObjectManager class

com.reintroducing.utils.SharedObjectManager

 

 

 

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

var som:SharedObjectManager = new SharedObjectManager($name, $localPath, $secure);

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

som.setProperty({hasVisited: "yes"});

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

Nothing
 

getProperty

Usage

som.getProperty("hasVisited");

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

som.clear();

Description

Clears the current shared object.

Returns

Nothing