A recent discussion thread discussed how to find the name of a cast member attached to a sprite. That's pretty straightforward and answered well by several list members.
Here's a challenge that has puzzled me for a long time. I usually take a coding shortcut because of time, but is there a way to find the sprite if the member number or name is known?
(x = the spriteNum of member "junk")
At first glance, this expression seems it would work. Even a rudimentary understanding of the concept of object properties shows this is a ludicrous expression. A cast member can't possibly have this property. However, it seems that there should be way to identify which sprite is using a known cast member.
WHILE AUTHORING, one can select the cast member & choose Edit > Find > Find Selection & this will find the next usage of that member in the score.
One can also use the context menu for a member & select 'Find In Score'
& there is also a shortcut key combo (cmd-h,ctrl-H before MX, I don't remember the MX combo)
if NOT IN AUTHORING, one would have to walk all the sprites & check them & accumulate a list & return that.
hth -Buzz
------------------------------------------------- Ronald Woodland -- St. George, Utah 84770 ------------------------------------------------- "I long to accomplish a great and noble task, but it is my chief duty to accomplish small tasks as if they were great and noble." -- Helen Keller
[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!]
