right

Usage

-- Lingo syntax
spriteObjRef.right

// JavaScript syntax
spriteObjRef.right;

Description

Sprite property; indicates the distance, in pixels, of a sprite's right edge from the left edge of the Stage. Read/write.

Sprite coordinates are expressed relative to the upper left corner of the Stage.

Example

This statement returns the distance of a sprite's right edge:

-- Lingo syntax
put(sprite(6).right)

// JavaScript syntax
put(sprite(6).right);

See also

bottom, height, left, locH, locV, Sprite, top, width