User Guide
533
rect (window)
Syntax
window whichWindow.rect
the rect of window whichWindow
Description
Window property; specifies the left, top, right, and bottom coordinates, as a rectangle, of the
window specified by whichWindow.
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.
This property can be tested and set.
Example
This statement displays the coordinates of the window named Control_panel:
put window("Control_panel").rect
See also
drawRect, sourceRect
ref
Syntax
chunkExpression.ref
Description
Text chunk expression property; this provides a convenient way to refer to a chunk expression
within a text cast member.
Examples
Without references, you would need statements like these:
member(whichTextMember).line[whichLine].word[firstWord..lastWord].font = "Palatino"
member(whichTextMember).line[whichLine].word[firstWord..lastWord].fontSize = 36
member(whichTextMember).line[whichLine].word[firstWord..lastWord].fontStyle = [#bold]
But with a ref property, you can refer to the same chunk as follows:
myRef = member(whichTextMember).line[whichLine].word[firstWord..lastWord].ref
The variable myRef is now shorthand for the entire chunk expression. This allows something like
the following:
put myRef.font
-- "Palatino"
Or you can set a property of the chunk as follows:
myRef.fontSize = 18
myRef.fontStyle = [#italic]