On 28 Oct 2005, at 11:08, Jorge Rego wrote:

Hi list,

I have some MCs named mc1, mc2, mc3 ...
I'm trying to access them like this:
mc[number].someProperty ... but no luck!

How can this be done!?

I use eval()

eval("mc"+i).someProperty

where i is some number

perhaps a "more correct" way would be to generate the mc name into a variable, and then use the variable?

tempVariable = eval("mc"+i);
tempVariable.someProperty
tempVariable.someOtherProperty
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to