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