Using Lingo or JavaScript syntax to set and test Flash variables

In previous Director releases it was necessary to use the getVariable() and setVariable() methods to access Flash variables. Director MX 2004 now allows you to access Flash variables and execute methods directly on the Director sprite.

To set a Flash variable:

To get the value of a Flash variable:

To execute a Flash method:

For more information, see Using Flash objects in script.

You can also use the following two sprite methods to access ActionScript variables in Flash sprites: getVariable() and setVariable(). For more information, see the Scripting Reference topics in the Director Help Panel.