PDA

View Full Version : FMX using eval.



charlie
February 25th, 2003, 04:07 AM
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.

CyanBlue
February 25th, 2003, 05:16 AM
Howdy...

eval(i) ---> this[i]

;)

charlie
February 25th, 2003, 05:24 AM
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.

CyanBlue
February 25th, 2003, 05:32 AM
Hehe... Stay in the forum and read as much as you can to stay up to date... That's what I do now... =)