rect (Sprite)

Usage

-- Lingo syntax
spriteObjRef.rect

// JavaScript syntax
spriteObjRef.rect;

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. Read/write.

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