Lingo Dictionary > O-R > right

 

right

Syntax

sprite(whichSprite).right
the right of sprite whichSprite

Description

Sprite property; indicates the distance, in pixels, of the specified sprite's right edge from the left edge of the Stage.

When a movie plays back as an applet, this property's value is relative to the upper left corner of the applet.

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

This property can be tested and set.

Example

This statement calls the handler offRightEdge when the right edge of sprite 3 is past the right edge of the Stage:

if sprite(3).right > (the stageRight - the stageLeft) then offRightEdge

See also

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