Adrian's description is exactly how you would do it if you have set it up as 
you describe.

Jason Merrill  






>>-----Original Message-----
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] Behalf Of Kent
>>Humphrey
>>Sent: Monday, January 30, 2006 8:54 AM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] targetting a mc from a list
>>
>>
>>Thanks, but that doesn't work either. It looks like it should, but  
>>I'm still getting undefined.
>>
>>On 30 Jan 2006, at 13:31, Adrian Lynch wrote:
>>
>>> Try:
>>>
>>> parent_mc[listWhatever[0]];
>>>
>>> Ade
>>>
>>> -----Original Message-----
>>> From: [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED] Behalf Of Kent
>>> Humphrey
>>> Sent: 30 January 2006 13:25
>>> To: Flashcoders mailing list
>>> Subject: [Flashcoders] targetting a mc from a list
>>>
>>>
>>> I have a list:
>>> (code is example only)
>>>
>>> listWhatever = ["mc1", "mc2"];
>>>
>>> This list is cycled through to generate some mcs inside parent_mc.
>>> I now want to target one of those mcs again. Lets say I want to
>>> target the first one in my list. I thought I could use eval() to
>>> generate the statement, like so:
>>>
>>> eval("parent_mc."+listWhatever[0]);
>>>
>>> But trace() that returns undefined. How do I do it?
>>>
>>> Thanks.
>>> _______________________________________________
>>> Flashcoders mailing list
>>> [email protected]
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>
>>>
>>
>>_______________________________________________
>>Flashcoders mailing list
>>[email protected]
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to