User Guide

625
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
stageLeft, stageRight, stageBottom, locH, locV
startAngle
Syntax
member(whichCastmember).modelResource(whichModelResource).
startAngle
modelResourceObjectReference.startAngle
Description
3D property; when used with a model resource whose type is #cylinder or #sphere, this command
allows you to both get and set the
startAngle property of the referenced model resource, as a
floating-point value from 0.0 to 360.0. The default value for this property is 0.0.
The
startAngle property determines the starting sweep angle of the model resource, and works in
conjunction with the
endAngle property to draw spheres and cylinders. For example, if you want
to make a half sphere, set startAngle to 0.0 and endAngle to 180.0.
Example
The following statement sets the startAngle of the model resource Sphere01 to 0.0. If its endAngle
is set to 90, then only one quarter of any model that uses this model resource will appear.
put member("3D World").modelResource("Sphere01").startAngle
-- 0.0
See also
endAngle
startFrame
Syntax
sprite(whichSprite).startFrame
Description
Function; returns the frame number of the starting frame of the sprite span.
This function is useful in determining the span in the Score that a particular sprite covers. It is
available only in a frame that contains the sprite, and cannot be applied to sprites in different
frames of the movie, nor is it possible to set this value.