688
Chapter 14: Properties
Example
Beginning with the following XML:
<?xml version="1.0"?>
<e1>
<tagName attr1="val1" attr2="val2"/>
<e2>element 2</e2>
<e3>element 3</e3>
here is some text
</e1>
This Lingo returns the name of the first child node of the preceding XML:
put gParserObject.child[1].name
-- "e1"
chunkSize
Usage
member(
whichCastMember
).chunkSize
the chunkSize of member
whichCastMember
Description
Transition cast member property; determines the transition’s chunk size in pixels from 1 to 128
and is equivalent to setting the smoothness slider in the Frame Properties: Transition dialog box.
The smaller the chunk size, the smoother the transition appears.
This property can be tested and set.
Example
This statement sets the chunk size of the transition cast member Fog to 4 pixels.
Dot syntax:
member("Fog").chunkSize = 4
Verbose syntax:
set the chunkSize of member "Fog" to 4
clearAtRender
Usage
member(
whichCastmember
).camera(
whichCamera
).colorBuffer.\
clearAtRender
sprite(
whichSprite
).camera{(
index
)}.colorBuffer.clearAtRender
Description
3D property; indicates whether the color buffer is cleared after each frame. Setting the value to
FALSE
, which means the buffer is not cleared, gives an effect similar to trails ink effect. The
default value for this property is
TRUE
.
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...