The Flash object contains methods, which can be used to interact with the main Flash movie. Through JScript there are no built-in methods for accessing objects and properties within Flash, so this object was built with some proxy methods to allow you to get/set data from/in the Flash movie, as well as execute ActionScript commands from JScript.
The following encapsulate much of the functionality required to effectively communicate with and control the parent SWF:
Each of these methods accepts an object as an argument. This object should have properties, which are defined as the input and output parameters. Input parameters are properties for which you specify values that the method receives. Output parameters are properties that get attached to the return object, which contain data after command execution.
Most of these methods return an object with properties relating to what is returned in ActionScript. The value of the return is evaluated everytime you make reference to it in JScript so it is always current.
Because the communication between JScript and ActionScript is limited to strings measures are in place to maintain datatypes for values sent to ActionScript. However, values read into JScript from ActionScript will be the string representation of the value.
returnObject = Flash.method(parametersObject}
returnObject - Object - Data returned is passed through this object as properties called Output Parameters.
method - Function - Specify one of the methods mentioned above.
parametersObject - Object - Data to the method is passed through this object as properties called Input Parameters.
See examples for each method by clicking the links above.