![MACROMEDIA DIRECTOR MX 2004 Reference Download Page 900](http://html1.mh-extra.com/html/macromedia/director-mx-2004/director-mx-2004_reference_687516900.webp)
900
Chapter 14: Properties
Example
This example assigns the number of sound channels of the SWA streaming cast member Duke
Ellington to the field cast member Channel Display:
-- Lingo syntax
myVariable = member("Duke Ellington").numChannels
if myVariable = 1 then
member("Channel Display").text = "Mono"
else
member("Channel Display").text = "Stereo"
end if
// JavaScript syntax
var myVariable = member("Duke Ellington").numChannels;
if (myVariable = 1) {
member("Channel Display").text = "Mono";
} else {
member("Channel Display").text = "Stereo";
}
numParticles
Usage
member(
whichCastmember
).modelResource(
whichModelResource
).\
emitter.numParticles
modelResourceObjectReference
.emitter.numParticles
Description
3D property; when used with a model resource whose type is
#particle
, allows you to get or set
the
numParticles
property of the resource’s particle emitter. The value must be greater than 0
and no more than 100000. The default setting is 1000.
Example
In this example, ThermoSystem is a model resource of the type #particle. This statement sets the
number of particles in ThermoSystem to 50000.
member("Fires").modelResource("ThermoSystem").emitter.\
numParticles = 50000
See also
emitter
numSegments
Usage
member(
whichCastmember
).modelResource(
whichModelResource
).\
numSegments
Description
3D property; when used with a model resource whose type is
#cylinder
, allows you to get or set
the
numSegments
property of the model resource.
The
numSegments
property determines the number of segments running from the top cap of the
cylinder to the bottom cap. This property must be greater than or equal to the default value of 2.
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...