860
Chapter 14: Properties
missingFonts
Usage
member(
textCastMember
).missingFonts
Description
Text cast member property; this property contains a list of the names of the fonts that are
referenced in the text, but not currently available on the system.
This allows the developer to determine during run time if a particular font is available or not.
This property can be tested but not set.
See also
substituteFont
mode (emitter)
Usage
member(
whichCastmember
).modelResource(
whichModelResource
).\
emitter.mode
Description
3D property; when used with a model resource whose type is
#particle
, allows you to both get
and set the
mode
property of the resource’s particle emitter.
This property can have the value
#burst
or
#stream
(default). A
mode
value of
#burst
causes all
particles to be emitted at the same time, while a value of
#stream
causes a group of particles to be
emitted at each frame. The number of particles emitted in each frame is determined using the
following equation:
particlesPerFrame = resourceObject.emitter.numParticles \
(resourceObject.lifetime x millisecondsPerRenderedFrame)
Example
In this example, ThermoSystem is a model resource of the type #particle. This statement sets the
emitter.mode property of ThermoSystem to #burst, which causes the particles of ThermoSystem
to appear in bursts. To create a single burst of particles, set
emitter.mode = #burst
and
emitter.loop = 0
.
member("Fires").modelResource("ThermoSystem").emitter.mode = #burst
See also
emitter
Summary of Contents for DIRECTOR MX 2004
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...