benbock at msn.com
Fri Mar 17 14:21:05 EST 2006
I have a stack that with 141 cards. 40 of the cards have images set on a timer :
wait 2 seconds
hide image "img1"
I need to make an openStack script that will set the images to "show". My usual lowbrow, untrained approach is to hard code it, which gets tedious:
show img "img1"
I want to make a stack script for this easy problem, so that all images are set to "visible = true" or "show". I just can't get it right.
put the number of cds into cardCount
repeat with x = 1 to cardCount
put the number of images into imageCount
repeat with y = 1 to imageCount
put the ID of image y of cd x into imageNameList --(something is wrong here)
repeat for each line Joe in imageNameList
set the visible of image q to true
I think part of my problem is that I don't really understand the repeat syntax.
1) is there any design flaw using the wait/hide format?
2) How can I re-write the preOpenStack script to do what I want?
I'll eagerly read any pointers.
Thanks for any help,
More information about the Use-livecode