ref
947
Example
This statement displays the coordinates of bitmap sprite 20:
-- Lingo syntax
put(sprite(20).rect)
// JavaScript syntax
put(sprite(20).rect);
See also
rect()
,
Sprite
rect (Window)
Usage
-- Lingo syntax
windowObjRef
.rect
// JavaScript syntax
windowObjRef
.rect;
Description
Window property; specifies the left, top, right, and bottom coordinates, as a rectangle, of a
window. Read/write.
If the size of the rectangle specified is less than that of the Stage where the movie was created, the
movie is cropped in the window, not resized.
To pan or scale the movie playing in the window, set the
drawRect
or
sourceRect
property of
the window.
Example
This statement displays the coordinates of the window named Control_panel:
-- Lingo syntax
put(window("Control_panel").rect)
// JavaScript syntax
put(window("Control_panel").rect);
See also
drawRect
,
sourceRect
,
Window
ref
Usage
chunkExpression
.ref
Description
Text chunk expression property; this provides a convenient way to refer to a chunk expression
within a text cast member.
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...