Lingo Dictionary > O-R > rect (member) |  |

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.

Example

This statement displays the coordinates of bitmap cast member 20:

    put member(20).rect

Example

This statement sets the coordinates of bitmap cast member Banner:

    member("Banner").rect = rect(100, 150, 300, 400)

See also

`rect()`, `rect (sprite)`