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


putArray

Description

Puts an array into Action Script.


Syntax

FlashPlayer.putArray(name, value)


Parameters

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


Returns

Nothing


Example

var array0 = [1, 2, 3];
FlashPlayer.putArray("_root.array0", array0);
Notice: The "_root.array0" must have been defined as an array in Action Script explicitly.




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