property mySprite, spriteNum, imgCount
global imgList
on beginSprite me
mySprite = sprite(spriteNum)
imgCount = 0
end
on mouseUp me
imgCount = imgCount + 1
if imgCount = imgList.count() then imgCount = 1
mySprite.member = imgList[imgCount]
end
HTH,
StevenSacks
[EMAIL PROTECTED]
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Yo Gomi
> Sent: Sunday, November 19, 2000 6:58 PM
> To: [EMAIL PROTECTED]
> Subject: <lingo-l> RE: Lingo-L Digest V1 #1715
>
>
> Hello,
> 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?
>
> 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
>
> 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!]
>
>
[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!]