Playing audio files consecutively

Devin Asay devin_asay at byu.edu
Mon Apr 16 11:35:30 EDT 2007


On Apr 15, 2007, at 1:23 PM, Andrew Lian -nswc wrote:

> Dear All
>
> I am sure that this problem has been solved many times but I am  
> just playing with runrev right now and am experiencing some  
> difficulty.
>
> Here is the situation:
>
> In a BUTTON I have put the following script
>
> on mouseUp
>   play audioclip "student"
>   play audioclip "master"
> end mouseUp
>
> The idea is to play the first clip followed by the second.
>
> The system omits playing the first file and cascades down to  
> playing "master".
>
> I have experimented by placing, in the button, a handler like
>
> on playStopped
>    play audioclip "master"
> end playStopped
>
> The idea is to play "student" first and wait until it is played.  
> However - this does not work either.

Marc's answer was perfect for your first question, but regarding the  
implied second question:
>
> It seems that the playStopped message is never sent or, if it is,  
> it is never read.

The playStopped message works only with player objects, not with the  
play command.

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University




More information about the use-livecode mailing list