-- Lingo syntaxwindowObjRef.drawRect // JavaScript syntaxwindowObjRef.drawRect;
Window property; identifies the rectangular coordinates of the Stage of the movie that appears in a window. Read/write.
The coordinates are given as a rectangle, with entries in the order left, top, right, and bottom.
This property is useful for scaling or panning movies, but it does not rescale text and field cast members. Scaling bitmaps can affect performance.
This statement displays the current coordinates of the movie window called Control Panel:
-- Lingo syntax
put(window("Control Panel").drawRect)
// JavaScript syntax
put(window("Control Panel").drawRect);
The following statement sets the rectangle of the movie to the values of the rectangle named movieRectangle. The part of the movie within the rectangle is what appears in the window.
-- Lingo syntax
movieRectangle = rect(10, 20, 200, 300)
window("Control Panel").drawRect = movieRectangle
// JavaScript syntax
var movieRectangle = rect(10, 20, 200, 300);
window("Control Panel").drawRect = movieRectangle;
The following lines cause the Stage to fill the main monitor area:
-- Lingo syntax _movie.stage.drawRect = _system.deskTopRectList[1] _movie.stage.rect = _system.deskTopRectList[1] // JavaScript syntax _movie.stage.drawRect = _system.deskTopRectList[1]; _movie.stage.rect = _system.deskTopRectList[1];