# Eval problem…

**URL:** <https://forum.kirupa.com/t/eval-problem/163629>\
**Category:** flash\
**Created:** [September 24, 2005, 3:59am UTC](https://forum.kirupa.com/t/eval-problem/163629 "2005-09-24T03:59:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![krilnon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/krilnon/32/34_2.png) [@krilnon](https://forum.kirupa.com/u/krilnon)\
**Post date:** [September 24, 2005, 3:59am UTC](https://forum.kirupa.com/t/eval-problem/163629/1 "2005-09-24T03:59:52Z")

</div>

```auto
var clipArray:Array = ["kirupa_mc", "is_mc", "a_mc", "really_mc", "cool_mc", "site_mc"];
if (pastMouse>this._xmouse) {
        for (i=0; i<6; i++) {
            eval(clipArray*)._x += 1;
            if (eval(clipArray*)._x>Stage.width+5) {
                eval(clipArray*)._x -= Stage.width-85;
            }
        }
    }

```

In the above AS, the first usage of eval() works fine, but it fails to work in the **if** statement. I’m guessing that this is because of improper usage of eval(), but I can’t think of another way to reference all of the clips dynamically like I want to.

Suggestions?
