metacard  

Something counter to my intuition

Geoff Canyon
Fri, 15 Sep 2000 09:26:43 -0700

I don't think this is a bug, but it tripped me up, so I thought I would
point it out so everyone can benefit, or poke fun as the case may be.

I had set up scripts on several succeeding cards to play some sound files,
and proceed on to the next card when the sound stopped. I used the on
playStopped message to accomplish this, and it worked fine. I also wanted
the user to be able to abort the process, so I put in a script that said, in
part:

on mouseUp
    play stop
    visual effect push left slow
    go cd "readers"
end mouseUp

But this didn't work correctly; the script went to the appropriate card, but
then went on to the card after it!

After much futzing around trying to narrow down the cause, I figured out
that the playStopped message was still being delivered, even though I was
the one cancelling playback, and in the middle of a script. Changing the
script to:

on mouseUp
    visual effect push left slow
    go cd "readers"
    play stop
end mouseUp

Fixed it right up. It bugged me at the time, but in retrospect it seems
logical. But it bears keeping in mind.


Also:
on 9/14/00 8:30 PM, Richard MacLemale at [EMAIL PROTECTED] wrote:

> I'm REALLY looking forward to
> an OS X MetaCard engine.  I may never leave my computer again!

I second that thought. I can't wait to send out the press releases...

gc



Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.