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 object’s
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 object’s
window
property.
-- Lingo syntax
objWindow = _player.window["Sun"]
// JavaScript syntax
var objWindow = _player.window["Sun"];
•
Use the Player object’s
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()
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...