create another list: say plLoop = [1,5,11,15] which stores the start of each loop. depending on the loop u choose say pnCurrentLoop = 3 i.e member 11 to 14, repeat with i = plLoop[pnCurrentLoop] to plLoop[(pnCurrentLoop + 1) - 1] -- end repeat
hope this is wht u looking for.. sandy -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Wiesenfeld Sent: Wednesday, November 07, 2001 12:25 AM To: [EMAIL PROTECTED] Subject: <lingo-l> list of cast members Hi, I've used imaging lingo to add an image duplicate of 20 cast members to a list and copy them in succession to the stage (sort of an animated gif): property pcurrentmember, pmembertimer,plist on new me plist = [] repeat with i = 1 to 20 plist.add ((member ("foo"& i).image.duplicate()) end repeat pcurrentmember = 1 pmembertimer = the milliseconds return me end on update me if the milliseconds - pmembertimer > 200 then nextmember pmembertimer = the milliseconds end if (the stage).image.copypixels(plist[pcurrentmember],plist[pcurrentmember].plist[pc urrentmember].rect) end on nextmember pcurrentmember = pcurrentmember +1 if pcurrentmember = count ( plist) + 1 then pcurrentmember = 1 end This basic script works but what I want to do is specify different loop parameters, loop1 = member1 to member4, loop2 = member5 to member10 etc. and then be able to switch the loopstart/end either based on time (or direction). I've tried to break it up into several lists then add these into a list of lists but to no avail. I'm sure it's quite simple, but I've got no clue. Any help appreciated, 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!] [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!]
