Stupid Programming Question
Rob Cozens
rcozens at pon.net
Tue May 4 20:12:21 EDT 2004
>I've got 16 or so images that I want shown at, say, 5 tick intervals.
>
>Images are named "c1.jpg", "c2.jpg", etc.
Hi Judy,
The most straightforward approach:
repeat with x = 1 to the number of images
show image x
wait 5 ticks
hide image x
end repeat
For those who eschew "wait":
on showAnImage
constant waitingPeriod=5 -- play with interval here
local imageNumber=0
lock screen
if imageNumber > 0 then hide image imageNumber -- maybe you want
the last image to remain visible?
add 1 to imageNumber
if imageNumber <= the number of images then
show image imageNumber
send showAnImage to me in waitingPeriod ticks
end if
unlock screen
end showAnImage
--
Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.net/who.htm
"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."
from "The Triple Foole" by John Donne (1572-1631)
More information about the use-livecode
mailing list