user interrupt for script

Trevor DeVore lists at mangomultimedia.com
Fri Dec 9 10:44:11 EST 2005


On Dec 9, 2005, at 5:58 AM, Preston Shea wrote:

> I have an audio slide show made by
>
> on openCard
>    play audioClip "blabla"
>    wait until the sound is done
> go next card
>
> How do I allow the user to interrupt the sequence and restart it?  
> Is there a better way to script the whole design?

Rather than using a wait until comand try using playStopped.  This  
message is sent to the card when an audio clip stops playing.  When  
the audio clip stops you can start the next one.  This way you can  
have a button that the user can click which calls

play stop "blabla"

There is a basic example in the Images & Multimedia conference stack  
at <http://support.runrev.com/scriptingconferences/> that you could  
take a look at.


-- 
Trevor DeVore
Blue Mango Multimedia
trevor at mangomultimedia.com





More information about the use-livecode mailing list