User Guide
622
Examples
This statement causes the main Stage movie to go to the marker named Menu. This statement
can be used in a movie in a window (MIAW):
tell the Stage to go to "Menu"
This statement displays the current setting for the Stage:
put the stage.rect
--rect (0, 0, 640, 480)
stageBottom
Syntax
the stageBottom
Description
Function; along with stageLeft, stageRight, and stageTop, indicates where the Stage is positioned
on the desktop. It returns the bottom vertical coordinate of the Stage relative to the upper left
corner of the main screen. The height of the Stage in pixels is determined by
the stageBottom -
the stageTop
.
When the movie plays back as an applet, the stageBottom property is the height of the applet in
pixels.
This function can be tested but not set.
Example
These statements position sprite 3 a distance of 50 pixels from the bottom edge of the Stage:
stageHeight = the stageBottom - the stageTop
sprite(3).locV = stageHeight - 50
Sprite coordinates are expressed relative to the upper left corner of the Stage. For more
information, see Using Director.
See also
stageLeft, stageRight, stageTop, locH, locV
stageColor
Syntax
the stageColor
Description
System property; determines the color of the movie background for index color only.
Use
bgColor for more accurate, reliable, and flexible stage color specification with RGB values.
The value of the
stageColor property ranges from 0 to 255 for 8-bit index color, and from 0 to 15
for 4-bit color. You can click a color in the color palette to see that color’s index number in the
lower left corner of the window. Setting the
stageColor property in a Lingo script is equivalent to
choosing the Stage color from the pop-up palette in the panel window.
Note: For compatibility when playing back as a Java applet, use the bgColor property to define the color as
an RGB value.