635
stop() (sound)
Syntax
sound(
channelNum
).stop()
stop(sound(
channelNum
))
Description
Command; stops the currently playing sound in sound channel
channelNum
. Issuing a
play()
command begins playing the first sound of those that remain in the queue of the given
sound channel.
To see an example of stop
() (sound)
used in a completed movie, see the Sound Control movie in
the Learning/Lingo Examples folder inside the Director application folder.
Example
This statement stops playback of the sound cast member currently playing in sound channel 1:
sound(1).stop()
See also
getPlaylist()
,
pause() (sound playback)
,
play() (sound)
,
playNext()
,
rewind()
stopEvent
Syntax
stopEvent
Description
Command; prevents Lingo from passing an event message to subsequent locations in the message
hierarchy. Equivalent to the
dontPassEvent
command used in earlier versions of Director, this
command also applies to sprite scripts.
Use the
stopEvent
command to stop the message in a primary event handler or a sprite script, thus
making the message unavailable for subsequent sprite scripts.
By default, messages are available first to a primary event handler (if one exists) and then to any
scripts attached to a sprite involved in the event. If more than one script is attached to the sprite,
the message is available to each of the sprite’s scripts. If no sprite script responds to the message,
the message passes to a cast member script, frame script, and movie script, in that order.
The
stopEvent
command applies only to the current event being handled. It does not affect future
events. The
stopEvent
command applies only within primary event handlers, handlers that
primary event handlers call, or multiple sprite scripts. It has no effect elsewhere.
Example
This statement shows the
mouseUp
event being stopped in a behavior if the global variable
grandTotal
is equal to 500:
global grandTotal
on mouseUp me
if grandTotal = 500 then
stopEvent
end if
end
Summary of Contents for DIRECTOR MX-LINGO DICTIONARY
Page 1: ...Lingo Dictionary Macromedia Director MX...
Page 756: ...Index 756...