Director Help

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()

 

Property summary for the Window object

Property 

appearanceOptions

resizable

bgColor (Window)

sizeState

dockingEnabled

sourceRect

drawRect

title (Window)

fileName (Window)

titlebarOptions

image (Window)

type (Window)

movie

visible

name

windowBehind

picture (Window)

windowInFront

rect (Window)

 

See also

Cast Library, Member, Movie, Player, Sprite, window(), window, windowList