Working with Models and Model Resources
475
Sphere properties
Spheres created at runtime aren’t saved with the cast member’s media when the Director movie is
saved. Their
type
is
#sphere
. Their surface is generated by sweeping a two-dimensional
semicircle arc in the xy plane from
startAngle
to
endAngle
in the y-axis. If
startAngle
= 0.0
and
endAngle
= 360.0
, a full sphere is generated. If
startAngle
= 180.0
and
endAngle
= 360.0
,
a half sphere is generated. These properties can be modified or animated at runtime.
Cylinder properties
Cylinders have a
type
property of
#cylinder
. Director generates a cylinder’s surface by sweeping
a 2D line around the z-axis in the xy plane from
startAngle
to
endAngle
. If
startAngle
= 0.0
and
endAngle = 360.0
, a full cylinder is generated. If
startAngle = 180.0
and
endAngle =
360.0
, a half cylinder is generated. These properties can be modified or animated at runtime.
Property
Access
Description
Value Range
radius
Get and set
Radius of the sphere.
Positive floating-point
value. The default is
25.0.
resolution
Get and set
Controls the number of polygons used in the
creation of the sphere surface. The higher the
value, the smoother the surface.
An integer value of 1 or
greater. The default is 20.
startAngle
Get and set
Starting angle of the sweep.
Floating-point value of
from 0.0 to 360.0. The
default is 0.0.
endAngle
Get and set
Ending angle of the sweep.
Floating-point value of
from 0.0 to 360.0. The
default is 360.0.
Property
Access
Description
Value Range
topRadius
Get and set
Radius of the top of the cylinder. Setting this
value to 0 produces a cone.
Positive floating-point
value. The default
is 25.0.
bottomRadius
Get and set
Radius of the bottom of the cylinder.
Positive floating-point
value. The default
is 25.0.
numSegments
Get and set
Number of polygonal segments from bottom
to top.
An integer value greater
than 0.
resolution
Get and set
Number of polygonal segments around the
circumference of the circle. Controls the
smoothness of the cylinder’s appearance.
An integer value greater
than 1.
height
Get and set
Height of the cylinder along the z-axis.
Positive floating-point
value. The default
is 50.0.
topCap
Get and set
Value indicating whether the top of the cylinder
is closed or open.
TRUE
= closed.
TRUE
or
FALSE
. The
default is
TRUE
.
bottomCap
Get and set
Value indicating whether the bottom of the
cylinder is closed or open.
TRUE
= closed.
TRUE
or
FALSE
. The
default is
TRUE
.
Содержание DIRECTOR MX-USING DIRECTOR MX
Страница 1: ...Using Director MX Macromedia Director MX...
Страница 12: ...Contents 12...
Страница 156: ...Chapter 4 156...
Страница 202: ...Chapter 6 202...
Страница 244: ...Chapter 7 244...
Страница 292: ...Chapter 10 292...
Страница 330: ...Chapter 12 330...
Страница 356: ...Chapter 13 356...
Страница 372: ...Chapter 14 372...
Страница 442: ...Chapter 16 442...
Страница 472: ...Chapter 18 472...
Страница 520: ...Chapter 19 520...
Страница 536: ...Chapter 20 536...
Страница 562: ...Chapter 23 562...
Страница 566: ...Chapter 24 566...
Страница 602: ...Chapter 27 602...