
Controlling interaction between MIAWs
417
For more information, see the Scripting Reference topics in the Director Help Panel.
Listing the current MIAWs
The
windowList
property displays a list of all known MIAWs in the main movie. For example,
the following statement displays a list of current MIAW names in the Message window:
put_player.windowList
For more information about this property, see the Scripting Reference topics in the Director
Help Panel.
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.
Here 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, 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( )
Содержание DIRECTOR MX 2004-USING DIRECTOR
Страница 1: ...DIRECTOR MX 2004 Using Director...
Страница 16: ...16 Chapter 1 Introduction...
Страница 82: ...82 Chapter 3 Sprites...
Страница 98: ...98 Chapter 4 Animation...
Страница 134: ...134 Chapter 5 Bitmaps...
Страница 242: ...242 Chapter 10 Sound and Synchronization...
Страница 274: ...274 Chapter 11 Using Digital Video...
Страница 290: ...290 Chapter 12 Behaviors...
Страница 302: ...302 Chapter 13 Navigation and User Interaction...
Страница 334: ...334 Chapter 15 The 3D Cast Member 3D Text and 3D Behaviors...
Страница 392: ...392 Chapter 16 Working with Models and Model Resources...
Страница 418: ...418 Chapter 18 Movies in a Window...
Страница 446: ...446 Chapter 22 Managing and Testing Director Projects...