Lingo Dictionary > A-C > bitRate |  |

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

Verbose syntax:

    property spriteNum

    on beginSprite me
    	memName = sprite(spriteNum).member.name
    	put "The bitRate of member"&&memName&&"is"&&member(memName).bitRate
    end