The easy way is to use the same lingo that you have on the sprite itself,
except change this line:

sprite(me.spritenum).member=member(getat(mylist2,myval))

to reflect the channel number of the sprite you want to change (for example,
if channel 4):

sprite(4).member=member(getat(mylist2,myval))


Charlie Fiskeaux II
Media Designer
The Creative Group
www.cre8tivegroup.com
859/858-9054x29


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 10, 2003 8:56 AM
Subject: <lingo-l> (no subject)


Hi - just a small problem that im hoping someone will be able to solve for
me

At the moment I have a list behaviour which i am using to rotate through a
number of sprites as you you click on it with the mouse - this is using the
following lingo

global mylist2
on startmovie
  mylist2=[]
  mylist2=["blob", "bubble", "square", "star", "sun", "white"]
  end

-------- this first piece is a movie script.

global mylist2,myval

on beginsprite me
  myval=1
end

on mouseup me
  sprite(me.spritenum).member=member(getat(mylist2,myval))
  if myval<mylist2.count then
    myval=myval+1
  else
    myval = 1
  end if
end

------- and i have applied this to the first sprite to get at the list.

it does work as when i click on the sprite it moves onto the next sprite in
the list ( as it should)

however i need this to happen when you click on a remote sprite

eg - there is a button at the bottom of the screen that makes the sprite in
the middle of the screen run through the list - while the button remains the
same.

however i have no idea where to start on the lingo for this button.

Any help would be greatly appreciated - many thanks in advance
-Damian
[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