Stupid Programming Question
jperryl at ecs.fullerton.edu
Tue May 4 19:35:58 CDT 2004
But if I have other images that are part of the general landscape and
given group background behavior, will they be part of the incrementational
"Wait" is my friend...
On Tue, 4 May 2004, Rob Cozens wrote:
> >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
More information about the use-livecode