Flashing numbers added to Number Picker stack.

Douglas Gilliland douggilliland at gmail.com
Wed Jul 27 17:28:03 EDT 2005


Jan,
It works even better than I thought it would.
Thanks for the quick script - it is greatly appreciated. 
Doug Gilliland
Sarasota, FL


On 7/27/05, Jan Schenkel <janschenkel at yahoo.com> wrote:
> --- Douglas Gilliland <douggilliland at gmail.com> wrote:
> > I just finished a small stack to select my 9th grade
> > chemistry
> > students (sitting at numbered lab tables) at random.
> > I have 25
> > students and used the following script to select one
> > at random, then
> > speak that number:
> >
> > on mouseUp
> >   put random (25) into field "field1"
> >  revsetspeechvoice "ralph"
> >   revspeak field "field1"
> >   wait 4 sec
> >   put empty into field "field1"
> > end mouseUp
> >
> > To add a little flair, I would like numbers to
> > quickly flash on the
> > screen for one or two seconds before it stops at the
> > random number.
> > Looked through the documentation but found nothing.
> > Any suggestions? I don't need it if it is too
> > difficult but thought I
> > would ask. I'm too new to Revolution to know how
> > much it involves.
> > Doug Gilliland
> >
> 
> Hi Doug,
> 
> Here's a quick idea:
> --
> on mouseUp
>   ## show some numbers during 2 seconds
>   repeat 10 times
>     put random (25) into field "field1"
>     wait 200 milliseconds
>   end repeat
>   ## now the code you already had
>   put random (25) into field "field1"
>   revsetspeechvoice "ralph"
>   revspeak field "field1"
>   wait 4 sec
>   put empty into field "field1"
> end mouseUp
> --
> 
> Hope this helped,
> 
> Jan Schenkel.
> 
> Quartam - Tools for Revolution
> <http://www.quartam.com>
> 
> =====
> "As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)
> 
> 
> 
> ____________________________________________________
> Start your day with Yahoo! - make it your home page
> http://www.yahoo.com/r/hs
> 
>



More information about the use-livecode mailing list