FMX using eval

I was reading another query on this board about NOT using eval, as it had become deprecated, for attaching a name to a new
MC. I have been using eval to check through all the objects, and to add ones with a certain name to an array.

for (i in this) {
if ((typeof (eval(i))) == “movieclip” && substring(i, 1, 5)== “names”) {

would there be another method of doing this using dot notation?

sorry if this question seems a little muddled. I am new to flash, some things in it make a lot of sense and others are still confusing me.

Howdy…

eval(i) —> this*

:wink:

Well that was simple.
Thanks very much - some days I really think I’m not making any progress in flash, just slipping backwards very gently.

Hehe… Stay in the forum and read as much as you can to stay up to date… That’s what I do now… =)