next up previous contents
Next: setZoomRect Up: Methods Previous: getObject   Contents


putObject

Description

Puts an object into Action Script.


Syntax

FlashPlayer.putObject(name, value)


Parameters

name
Specifies the name of the object to set its value.
value
An object object. The value to set.


Returns

Nothing


Example

var obj = new Object;
obj.value = "string";
obj.name = 1.24;
FlashPlayer.putObject("_root.obj", obj);
Notice: The "_root.obj" must have been defined as an object in Action Script explicitly.




Copyright ©2000-2010 Shanghai TopCMM Software Technologies. All Rights Reserved.