User Guide

1008 Chapter 14: Properties
startAngle
Usage
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
Usage
-- Lingo syntax
spriteObjRef.startFrame
// JavaScript syntax
spriteObjRef.startFrame;
Description
Sprite property; returns the frame number of the starting frame of a sprite span. Read-only.
This property 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.
Example
This statement displays the starting frame of the sprite in channel 5 in the Message window:
-- Lingo syntax
put(sprite(5).startFrame)
// JavaScript syntax
put(sprite(5).startFrame);
See also
endFrame, Sprite