-- Moving to the right in a list:

memberList = [21, 32, 43, 54]

oldMemNum = sprite(blabla).memberNum
oldMemIndex = memberList.getPos(oldMember)
newMemIndex = oldMemIndex + 1
newMemNum = memberList[newMemIndex]

sprite(blabla).memberNum = newMemNum

-- Watch out for the ends of the list


HTH
-A.



>Hi list,
>
>I have a big cast with lot of images. Some images have an identifier in it's
>names like "s" or "m" so, I want to create a button that let's the user
>jumps to the specific images with this parameter. In the startmovie i made a
>repeat and built a list[] with the number od members that have the parameter
>"s" or "m". Now the problem how can I jump between this list. Example if my
>member (on stage) is number 4 and the next in list is 10 how can I tell the
>director to go to sprite(blabla).member = member(10) ??? and so on.
>
>Thank's in advance
>
>Rodrigo
>
>
>[To remove yourself from this list, or to change to digest mode, go 
>to http://www.penworks.com/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/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