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
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...