Repeat

John Cuccio jcuccio at pacbell.net
Sat May 11 02:50:00 EDT 2002


>on mouseup
>  repeat with x = 1 to 33
>    show image "(x).jpg"
>    put "(x)" into fld "Pic"
>    wait (The text of fld "Wait") seconds with messages
>    hide image "(x).jpg"
>  end repeat
>end mouseup

Try this 

on mouseup
  repeat with x = 1 to 33
    show image (x&".jpg")
    put x into fld "Pic"
    wait (fld "Wait") seconds with messages
    hide image (x&".jpg")
  end repeat
end mouseup

some times I have to put the name of something into a variable first.

put (x&".jpg") into imagename
show image imagename
hide image imagename




More information about the use-livecode mailing list