EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 116

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
116 Chapter 5: Director Core Objects
Window
Represents a window in which a movie is playing, including the Stage window and any other
movies in a window (MIAWs) that are in use.
You can create a reference to a Window object by using the top level
window() function, the
Player objects
window property, or the Player object’s windowList property.
Use the top level window() method.
-- Lingo syntax
objWindow = window("Sun")
// JavaScript syntax
var objWindow = window("Sun");
Use the Player objects window property.
-- Lingo syntax
objWindow = _player.window["Sun"]
// JavaScript syntax
var objWindow = _player.window["Sun"];
Use the Player objects windowList property.
-- Lingo syntax
objWindow = _player.windowList[1]
// JavaScript syntax
var objWindow = _player.windowList[1];
Note: When creating a named reference to a window by using either the top level
window() function
or the Player object’s
window property, a reference to that window is created only if a window by that
name exists. If a window by that name does not exist, the reference contains
VOID (Lingo) or null
(JavaScript syntax).
The movie object property scriptExecutionStyle is set to a value of 10 by default, and
windowType is deprecated by default in favor of the appearanceOptions and titlebarOptions
property lists. If
scriptExecutionStyle is set to a value of 9, windowType is fully functional.
Method summary for the Window object
Method
close() moveToBack()
forget() (Window) moveToFront()
maximize() open() (Window)
mergeProps() restore()
minimize()

Related product manuals