Flashing numbers added to Number Picker stack.
Jan Schenkel
janschenkel at yahoo.com
Wed Jul 27 16:36:08 EDT 2005
--- 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