Chapter 3
92
bitOr()
Syntax
bitOr(
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 either number had a 1, and 0’s in every other
position. The result is the new binary number, which Lingo displays as a base 10 integer.
Example
This statement compares the 32-bit binary versions of 5 and 6 and returns the result as an integer:
put bitOr(5, 6)
-- 7
See also
bitNot()
,
bitAnd()
,
bitXor()
bitRate
Syntax
member(
whichCastMember
).bitRate
the bitRate of member
whichCastMember
Description
Shockwave Audio (SWA) cast member property; returns the bit rate, in kilobits per second
(Kbps), of the specified SWA cast member that has been preloaded from the server.
The
bitRate
member property returns 0 until streaming begins.
Example
This behavior outputs the bit rate of an SWA cast member when the sprite is first encountered.
Dot syntax:
property spriteNum
on beginSprite me
memName = sprite(spriteNum).member.name
put "The bitRate of member"&&memName&&"is"&&member(memName).bitRate
end
Integer
Binary number (abbreviated)
5
0101
6
0110
Result
7
0111
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...