
636
Neither subsequent scripts nor other behaviors on the sprite receive the event if it is stopped in
this manner.
See also
pass
stop member
Syntax
member (
whichCastMember
).stop()
stop member (
whichCastMember
)
Description
Command; stops the playback of a Shockwave Audio (SWA) streaming cast member. When the
cast member is stopped, the
state
member property equals 0.
For you to change properties such as
streamName
,
preLoadTime
, and
URL
,
the SWA streaming cast
member must be stopped.
Example
This statement stops the SWA cast member Big Band from playing:
member("Big Band").stop()
See also
play member
,
pause member
on stopMovie
Syntax
on stopMovie
statement(s)
end
Description
System message and event handler; contains statements that run when the movie stops playing.
An
on stopMovie
handler is a good place to put Lingo that performs cleanup tasks—such as closing
resource files, clearing global variables, erasing fields, and disposing of objects—when the movie
is finished.
An
on stopMovie
handler in a MIAW is called only when the movie plays through to the end or
branches to another movie. It isn’t called when the window is closed or when the window is
deleted by the
forget window
command.
Example
This handler clears global variables and closes two resource files when the movie stops:
global gCurrentScore
on stopMovie
set gCurrentScore = 0
closeResFile "Special Fonts"
closeResFile "Special Cursors"
end
See also
on prepareMovie
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...