Controlling the 3D World
535
Sprite commands
Use these commands to work with 3D sprites:
targetFrame
Rate
Get and set
Controls the desired playback speed. If the
useTargetFramerate
property is
TRUE (1)
,
then the
lod.bias
property of all model
resources is dynamically altered until the target
frame rate is met.
30
useTarget
FrameRate
Get and set
If a target frame rate has been set and you want to
use it, set this property to
TRUE (1)
.
TRUE (1)
Command
Description
Returns
camera(
index
)
Accesses a specific camera in the sprite’s list of
views.
The camera
requested
addCamera(
camera, index
)
Adds a camera named
camera
at the specified
index number. If the index number is greater than the
number of cameras in the sprite’s camera count, or if
there is no index, the camera is added to the end
of the list.
An error if a
camera of that
name can’t be
found
deleteCamera
(
cameraOrIndex
)
If
cameraOrIndex
is a camera, the camera by that
name is deleted. If
cameraOrIndex
is an index
number, the camera at that index number is deleted.
In either case, the cameras after
cameraOrIndex
move forward in the list and the camera count is
decreased by 1.
An error if a
camera of that
name or index
number can’t be
found
cameraCount()
Returns the number of cameras in the sprite’s
cameraList
.
An integer
Property
Access
Description
Default
Содержание 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...