sourceRect

Usage

-- Lingo syntax
windowObjRect.sourceRect

// JavaScript syntax
windowObjRect.sourceRect;

Description

Window property; specifies the original Stage coordinates of the movie playing in a window. Read-only.

This property is useful for returning a window to its original size and position after it has been dragged or its rectangle has been set.

Example

This statement displays the original coordinates of the Stage named Control_panel in the Message window:

-- Lingo syntax
put(window("Control_panel").sourceRect)

// JavaScript syntax
put(window("Control_panel").sourceRect);

See also

Window