Hello, guys
I am trying to use a list but haven't really cracked it yet. Does anyone
know how to create a sprite that click-changes the images within a list?
I've done it like below but it only displays the 11th image of the list.
First, movie script
on startMovie
  global myList,i
  set
myList=[#city:1,#cloud:2,#face:3,#house:4,#kids:5,#leaf:6,#mountain:7,#sea:8
,#ski:9,#snow:10,#tree:11,#water:12]
end
on clickImage
  global myList,i
   repeat with i=1 to 11
    sprite(1).memberNum=myList[i]
     if i<12 then
      i=i+1
    else if i=13 then
      sprite(1).memberNum=myList[1]
      end if
end repeat
end

Here's a behavior script

on mouseUp
  global myList,i
  clickImage
--attach to a button sprite 1
end

any suggestion/correction awaited
thanks




[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to