# FMX using eval

**URL:** https://forum.kirupa.com/t/fmx-using-eval/14344
**Category:** Uncategorized
**Created:** [February 25, 2003, 9:07am UTC](https://forum.kirupa.com/t/fmx-using-eval/14344 "2003-02-25T09:07:34Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![charlie](https://avatars.discourse-cdn.com/v4/letter/c/d6d6ee/32.png) [@charlie](https://forum.kirupa.com/u/charlie)
#### Post date: [February 25, 2003, 9:07am UTC](https://forum.kirupa.com/t/fmx-using-eval/14344/1 "2003-02-25T09:07:34Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 25, 2003, 10:16am UTC](https://forum.kirupa.com/t/fmx-using-eval/14344/2 "2003-02-25T10:16:50Z")

</div>

Howdy…

eval(i) —\> this\*

😉

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 25, 2003, 10:24am UTC](https://forum.kirupa.com/t/fmx-using-eval/14344/3 "2003-02-25T10:24:03Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 25, 2003, 10:32am UTC](https://forum.kirupa.com/t/fmx-using-eval/14344/4 "2003-02-25T10:32:46Z")

</div>

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