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 " + memName +" 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
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
656
Chapter 14: Properties
command.
preLoadBuffer
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?