play sound problem
J. Landman Gay
jacque at hyperactivesw.com
Tue Apr 29 19:12:25 EDT 2014
On 4/29/14, 4:05 PM, larry at significantplanet.org 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 | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list