Hi make a copy of the behaviour
replace this line sprite(me.spritenum).member=member(getat(mylist2,myval)) with this line sprite(1).member = member (getat(mylist2,myval)) and attach the new behaviour to your lower sprite - should do it but untested Also please use a subject in your email Thanks HTH Dave ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 10, 2003 1:56 PM 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!] > > ______________________________________________________________________ __ > This email has been scanned for all viruses by the MessageLabs SkyScan > service. For more information on a proactive anti-virus service working > around the clock, around the globe, visit http://www.messagelabs.com > ______________________________________________________________________ __ ________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.messagelabs.com ________________________________________________________________________ [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!]
