That is pretty much what I am doing now but in my actual movie I have so much going on that I am trying not to have to cycle though all the sprites to find the one I am looking for. Thanks for the suggestion anyhow.
-Jason -----Original Message----- From: Kerry Thompson [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 4:01 PM To: [EMAIL PROTECTED] Subject: Re: <lingo-l> finding a sprite > I have a cast member that is placed in a random > sprite channel. Lets call it member 1. > On a button click I need to figure out what > sprite challe member 1 has been placed in. You could use a handler like this in a behavior on the button (warning--untested e-mail Lingo): numChannels = 999 -- or less if you have a max repeat with i = 1 to 999 if sprite(i).member.name = "member 1" then put "member is in channel " & i exit repeat end if end repeat Cordially, Kerry Thompson [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!]
