Director Help

Controlling interaction between MIAWs

MIAWs can interact with other MIAWs by accessing a window’s movie property. With a window’s movie, a user can access the movie’s handlers, variables, members, and so on.

The following are a couple of examples:

window("other MIAW").movie.member(1).name = "changed name"

or

window("other MIAW").movie.someHandler() 

Global variables can be declared in the main movie (the Stage) or in a MIAW. No matter where they are declared, they are available to the main movie and to all MIAWs. For more information about global variables, see the Scripting Reference topics in the Director Help Panel.

A MIAW can also interact with the main movie via window("stage").

For example:

window("stage").movie.member(1).name = "changed name"

or

window("stage").movie.someHandler( )