User Guide
532
rect (member)
Syntax
member(whichCastMember).rect
the rect of member whichCastMember
Description
Cast member property; specifies the left, top, right, and bottom coordinates, returned as a
rectangle, for the rectangle of any graphic cast member, such as a bitmap, shape, movie, or
digital video.
For a bitmap, the
rect member property is measured from the upper left corner of the bitmap,
instead of from the upper left corner of the easel in the Paint window.
For an Xtra cast member, the
rect member property is a rectangle whose upper left corner is at
(0,0).
The Director player for Java can’t set the
rect member property.
This property can be tested. It can be set for field cast members only.
Examples
This statement displays the coordinates of bitmap cast member 20:
put member(20).rect
This statement sets the coordinates of bitmap cast member Banner:
member("Banner").rect = rect(100, 150, 300, 400)
See also
rect(), rect (sprite)
rect (sprite)
Syntax
sprite whichSprite.rect
the rect of sprite whichSprite
Description
Sprite property; specifies the left, top, right, and bottom coordinates, as a rectangle, for the
rectangle of any graphic sprite such as a bitmap, shape, movie, or digital video.
This property can be tested and set.
Example
This statement displays the coordinates of bitmap sprite 20:
put sprite(20).rect