On 4/29/14, 4:05 PM, [email protected] wrote:
How do I wait to play the 2nd clip, but still allow the user to click on a Stop Play button?
For another approach, don't use embedded audio, use an audio file on disk and a player in the stack. Set the filename of the player to the file path of the audio file. The player can be invisible if you don't want to see it.
Start the player with the "start player" command. When the audio finishes the player will receive a "playStopped" message. A handler in the script of the player should catch that message, set its own filename to the next audio file on disk, and start playing that.
This way you don't need to know how long to wait or worry about blocking any user actions. You can also use a wider variety of sound formats than the three that LC allows to be embedded.
-- Jacqueline Landman Gay | [email protected] HyperActive Software | http://www.hyperactivesw.com _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
