656
Chapter 14: Properties
Example
This behavior outputs the bit rate of an SWA cast member when the sprite is first encountered.
-- Lingo syntax
property spriteNum
on beginSprite (me)
memName = sprite(spriteNum).member.name
put("The bitRate of member"&&memName&&"is"&&member(memName).bitRate)
end
// JavaScript syntax
function beginSprite() {
var memName = sprite(spriteNum).member.name;
put("The bitRate of member " + m" is " + member(memName).bitRate);
}
bitsPerSample
Usage
-- Lingo syntax
memberObjRef
.bitsPerSample
// JavaScript syntax
memberObjRef
.bitsPerSample;
Description
Shockwave Audio (SWA) cast member property; indicates the bit depth of the original file that
has been encoded for Shockwave Audio (SWA). This property is available only after the SWA
sound begins playing or after the file has been preloaded using the
preLoadBuffer
command.
This property can be tested but not set.
Example
This statement assigns the original bit rate of the file used in SWA streaming cast member Paul
Robeson to the field cast member How Deep.
-- Lingo syntax
member("How Deep").text = member("Paul Robeson").bitsPerSample
// JavaScript syntax
member("How Deep").text = member("Paul Robeson").bitsPerSample;
blend (3D)
Usage
sprite(
whichSprite
).camera{(
index
)}.backdrop[
index
].blend
member(
whichCastmember
).camera(
whichCamera
).backdrop[
index
].blend
sprite(
whichSprite
).camera{(
index
)}.overlay[
index
].blend
member(
whichCastmember
).camera(
whichCamera
).overlay[
index
].blend
member(
whichCastmember
).shader(
whichShader
).blend
member(
whichCastmember
).model(
whichModel
).shader.blend
member(
whichCastmember
).model(
whichModel
).shaderList{[
index
]}.blend
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...