Widget.setMemory()

Availability

Flash Player 7 + TheSpringBox V1

Usage

Widget.setMemory(value:Object) : Void;

Parameters

value - The object the will be stred in Memory.

Returns

Nothing.

Description

Method; used to store data on the client such as settings and preferences. The object that is stored will remain on the client even if the user exits TheSpringBox.

Example

The function in this example will store the users ZIP-Code.

function storeZIP() {
  var memory:Object = Widget.getMemory();
  var usrZip:Number = txtZip.text;
  memory.zip = usrZip;
  Widget.setMemory(memory);
};

See also

Widget.getMemory()