User Guide

607
After a list is sorted, it maintains its sort order even when you add new variables using the
add command.
Example
The following statement puts the list Values, which consists of [#a: 1, #d: 2, #c: 3], into
alphanumeric order. The result appears below the statement.
put values
-- [#a: 1, #d: 2, #c: 3]
values.sort()
put values
--[#a: 1, #c: 3, #d: 2]
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
soundBusy()
Syntax
soundBusy(whichChannel)
Description
Function; determines whether a sound is playing (TRUE) or not playing (FALSE) in the sound
channel specified by
whichChannel.
Make sure that the playhead has moved before using soundBusy() to check the sound channel. If
this function continues to return
FALSE after a sound should be playing, add the updateStage
command to start playing the sound before the playhead moves again.
This function works for those sound channels occupied by actual audio cast members.
QuickTime, Flash, and Shockwave audio handle sound differently, and this function will not
work with those media types.
Consider using using the
status property of a sound channel instead of soundBusy(). Status can be
more accurate under many circumstances.