Re: Concurrency in scripts

Boyd Sweeney (starnet!apple!puzzler.nichols.com!sweeneyb)
Fri, 27 May 1994 08:15:35 -0500

>*********************************************************
>from
>Paolo Austa
>C.S.E.L.T. telecom labs
>via Reiss Romoli 248
>Torino
>ITALY
>*********************************************************
>I'm trying to get a sort of blinking effect on some
>Metacard images, that is I wish to get them blink
>(i. e. repeatedly show/hide them)
>concurrently with the execution of scripts by themselves or
>by any other MC object.
>How can I do ? Does Metacard support the concurrent
>execution of scripts in some form? Are there tricks
>to obtain a similar effect ?
>Thanks
>Paolo.
>
>*********************************************************

As far as I know, you can't have concurrently executing scripts. If you
wanted to blink the images while there wasn't much activity, you could do
so from within an "on Idle" handler. However, I wouldn't bet on getting
Idle messages during the execution of a long script.

You'll probably have to "blink" the images from within the executing
script. To make this a bit easier, put all of the images into a group by
themselves, and call it something like Images_Group. If the script spends
most of its time in a loop, you could "show group Images_Group" at the top
of the loop, and "hide group Images_Group" at the bottom. Good luck.

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ Boyd Sweeney Scientist, Nichols Research Corporation _/
_/ sweeneyb@puzzler.nichols.com (205) 883-1170x1775 _/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/