Re: Auto Card Advance

Scott Raney (raney@metacard.com)
Thu, 4 Sep 1997 16:52:48 -0600 (MDT)

On 4 Sep 1997, Wayne Aldrich wrote:

(snip)

> I know the "sound" property allows me to check whether audio is
> playing, but I haven't quite worked out the syntax yet.

One simple way would just be "wait until the sound is done".
Unfortunately, that blocks all user input until the sound is done,
which means they can't interrupt the wait by clicking on the
navigation button.

There are two better ways to do this. One is to send the card a
message after a certain period of time, and have that message change
the card. See the Presentation Tutorial for details.

In 2.1.2, currently in beta test, there is also a "playStopped"
message which is sent when a clip finishes playing, so if you only
play a single audio clip on each card you could just put the following
in the stack script to do the auto card advance:
on playStopped
global gAutoAdvance
if gAutoAdvance
then go to next card
end playStopped

> Wayne
>

**********************************************************
Scott Raney raney@metacard.com http://www.metacard.com
Only 1% of computer users know a programming language...
MetaCard: We can change all that.