Lingo Dictionary > S > stageTop |  |

stageTop

Syntax

    the stageTop

Description

Function; along with `stageBottom`, `stageLeft`, and `stageRight`, indicates where the Stage is positioned on the desktop. It returns the top vertical coordinate of the Stage relative to the upper left corner of the main screen's desktop. If the Stage is in the upper left corner of the main screen, this coordinate is 0.

When the movie plays back as an applet, the `stageTop` property is always 0, which is the location of the left side of the applet.

This function can be tested but not set.

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

Example

This statement checks whether the top of the Stage is beyond the top of the screen and calls the handler `upperMonitorProcedure` if it is:

    if the stageTop < 0 then upperMonitorProcedure

See also

`stageBottom`, `stageLeft`, `stageRight`, `locH`, `locV`