getVar

Returns the value of the Flash variable specified.


Availability:

First available in version 3.0 build 2039.


Input Parameters:

variable - String - The full path of the variable that will be populated with the value specified.


Output Parameters:

None.


Notes:

The path to the variable must originate in _level0 or _global. If you are specifying a variable on _global, you must specify "global" - _global without the inital underscore. Default path is _level0.


Examples:

Example 1:
A simple example of tracing the value of a Flash variable to the SWF Studio trace window.

var status = Flash.getVar({variable:"_level0.status"});
trace(status);