User Guide

Lingo Dictionary 93
Verbose syntax:
property spriteNum
on beginSprite me
memName = sprite(spriteNum).member.name
put "The bitRate of member"&&memName&&"is"&&member(memName).bitRate
end
bitsPerSample
Syntax
member(whichCastMember).bitsPerSample
the bitsPerSample of member whichCastMember
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.
Dot syntax:
put member "Paul Robeson".bitsPerSample into member "How Deep"
Verbose syntax:
put the bitsPerSample of member "Paul Robeson" into member "How Deep"
bitXor()
Syntax
bitXor(integer1, integer2)
Description
Function; converts the two specified integers to 32-bit binary numbers and returns a binary
number whose digits are 1’s in the positions where the given numbers digits do not match, and
0’s in the positions where the digits are the same. The result is the new binary number, which
Lingo displays as a base 10 integer.
Integer Binary number (abbreviated)
5 0101
6 0110
Result
3 0011