# Eval, bracket notation, and undefined!

**URL:** <https://forum.kirupa.com/t/eval-bracket-notation-and-undefined/143578>\
**Category:** Uncategorized\
**Created:** [April 7, 2005, 2:32am UTC](https://forum.kirupa.com/t/eval-bracket-notation-and-undefined/143578 "2005-04-07T02:32:24Z")\
**Posts on this page:** 1\
**Page:** 1

<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:** [April 7, 2005, 2:32am UTC](https://forum.kirupa.com/t/eval-bracket-notation-and-undefined/143578/1 "2005-04-07T02:32:24Z")

</div>

Hey everyone,  
I am having a very odd error that I can’t seem to figure out. Here is my code:

```auto
m_name.onRollOver = function() {
 att_mov = 4;
 trace(_level0[att_mov+"_mc"]);
 trace(_level1[att_mov+"_mc"]);
 trace(_level2[att_mov+"_mc"]);
 trace(this[att_mov+"_mc"]);
 trace(m_name[att_mov+"_mc"]);
 trace(eval(att_mov+"_mc"));
};

```

When I run that code, I’m receiving ‘undefined’ for all cases. I read through an issue someone had earlier, [http://www.kirupa.com/forum/showthread.php?t=79893](http://www.kirupa.com/forum/showthread.php?t=79893), but I can’t figure it out why my version isn’t working.

Thanks!  
Kirupa :beam:
