1026
Chapter 14: Properties
Example
This statement retrieves and displays in the Message window all the tabs for the text cast member
Intro credits:
put member("Intro credits").tabs
-- [[#type: #left, #position: 36], [#type: #Decimal, #position: 141], \
[#type: #right, #position: 216]]
target
Usage
timeoutObject
.target
Description
Timeout object property; indicates the child object that the given
timeoutObject
will send its
timeout events to. Timeout objects whose target property is
VOID
will send their events to a
handler in a movie script.
This property is useful for debugging behaviors and parent scripts that use timeout objects.
Example
This statement displays the name of the child object that will receive timeout events from the
timeout object
timerOne
in the Message window:
put timeout(“timerOne”).target
See also
name (timeout)
,
timeout()
,
timeoutHandler
,
timeoutList
targetFrameRate
Usage
sprite(
which3dSprite
).targetFrameRate
Description
3D sprite property; determines the preferred number of frames per second to use when rendering
a 3D sprite. The default value is 30 frames per second. The
targetFrameRate
property is only
used if the
useTargetFrameRate
property is set to
TRUE
. If the
useTargetFrameRate
property is
set to
TRUE
, Director will reduce the polygon count of the models in the sprite if necessary to
maintain the specified frame rate.
Example
These statements set the
targetFrameRate
property of sprite 3 to 45 and enforce the frame rate
by setting the
useTargetFrameRate
property of the sprite to
TRUE
:
sprite(3).targetFrameRate = 45
sprite(3).useTargetFrameRate = TRUE
See also
useTargetFrameRate
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...