Page 1 of 1

How to know when my audioClip has finished playing?

Posted: Sat Jun 23, 2012 6:04 pm
by sritcp
When a player is used, it sends a message playerFinished when it is done playing. But, when I play an imported audioClip, using

play audioClip "clipName"

how would I know it is finished? (actually, I am trying to make an image blink as long as the audioclip is playing).

Thanks for any help,
Sri.

Re: How to know when my audioClip has finished playing?

Posted: Sat Jun 23, 2012 6:08 pm
by sturgis
you can use "the sound" and poll to see if its done.

Code: Select all

if the sound is done then
  stop blinking the image
end if

Re: How to know when my audioClip has finished playing?

Posted: Sat Jun 23, 2012 6:38 pm
by sritcp
Thanks, sturgis!

Regards,
Sri.