Error getting tags :
error 404Error getting tags :
error 404 playStopped | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
playStopped
Basics
Expander triangle
Type
Message
Syntax

playStopped

Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Sent to a player when it stops playing.
Examples

on playStopped
hide the target
show button "Start Playing"
end playStopped

Additional Comments
Expander triangle

Handle the playStopped message if you want to perform a task when a movie or sound finishes playing.

Comments:

The playStopped message is sent when the movie or sound reaches its end, or when a play stop command executes. If the user pauses the movie or sound, the playPaused message is sent instead.

When an audio clip or video clip is playing, a temporary player is created for it. When the clip is finished, the playStopped message is sent to it.

Note: The playStopped message is sent when a card containing the player closes and when the player's filename property is changed. If the player is hidden, or the movie or sound is not currently running, the message will still be sent. To prevent a playStopped handler from being executed inappropriately, set the lockMessages to true before changing the filename or switching cards:

lock messages -- prevent sending playStopped

set the filename of me to newFile

unlock messages

User Comments
Expander triangle