User Guide
548 Chapter 12: Methods
Example
This statement checks whether the left edge of the Stage is beyond the left edge of the screen and
calls the handler
leftMonitorProcedure if it is:
if the stageLeft < 0 then leftMonitorProcedure
See also
stageBottom, stageRight, stageTop, locH, locV
stageRight
Usage
the stageRight
Description
Function; along with stageLeft, stageTop, and stageBottom, indicates where the Stage is
positioned on the desktop. It returns the right horizontal coordinate of the Stage relative to the
upper left corner of the main screen’s desktop. The width of the Stage in pixels is determined by
the stageRight - the stageLeft.
When the movie plays back as an applet, the
stageRight property is the width of the applet
in pixels.
This function can be tested but not set.
Sprite coordinates are expressed relative to the upper left corner of the Stage.
Parameters
None.
Example
These two statements position sprite 3 a distance of 50 pixels from the right edge of the Stage:
stageWidth = the stageRight - the stageLeft
sprite(3).locH = stageWidth - 50
See also
stageLeft, stageBottom, stageTop, locH, locV
stageToFlash()
Usage
-- Lingo syntax
spriteObjRef.stageToFlash(pointOnDirectorStage)
// JavaScript syntax
spriteObjRef.stageToFlash(pointOnDirectorStage);
Description
Function; returns the coordinate in a Flash movie sprite that corresponds to a specified coordinate
on the Director Stage. The function both accepts the Director Stage coordinate and returns the
Flash movie coordinate as Director point values: for example, point (300,300).