Lingo Dictionary > S > sound

 

sound

Syntax

member(whichCastMember).sound
the sound of member whichCastMember

Description

Cast member property; controls whether a movie, digital video, or Flash movie's sound is enabled (TRUE, default) or disabled (FALSE). In flash members, the new setting takes effect after the currently playing sound ends.

This property can be tested and set.

To see an example of sound used in a completed movie, see the Sound Control movie in the Learning\Lingo Examples folder inside the Director application folder.

Example

This handler accepts a member reference and toggles the member's sound property on or off:

on ToggleSound whichMember
	member(whichMember).sound = not member(whichMember).sound
end