If you are putting the sprite in an MC and then doing mc.name = "myName" it should then return the name of the mc. Sprite however does not have the name property.
------Original Message------ From: Susan Day Sender: [email protected] To: Flash Coders List ReplyTo: Flash Coders List Subject: Re: [Flashcoders] Passing Call To Child Sent: Mar 10, 2010 12:20 PM On Wed, Mar 10, 2010 at 1:21 PM, [email protected] < [email protected]> wrote: > If you trace e.currentTarget what do you get? > [object Sprite] 1 The "1" is from this line, which follows: trace(e.currentTarget.numChildren); So lo and behold, apparently currentTarget does indeed have a child (I'm vindicated!). So I changed the line which used getChildByName to getChildAt and entered the value "0" and now all works well. But why didn't getChildByName work? How can I find the name of the child? TIA, Susan _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Nathan Mynarcik Interactive Web Developer [email protected] 254.749.2525 www.mynarcik.com _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

