# Code on frame moving object

**URL:** https://forum.kirupa.com/t/code-on-frame-moving-object/160961
**Category:** Uncategorized
**Created:** [August 30, 2005, 11:29pm UTC](https://forum.kirupa.com/t/code-on-frame-moving-object/160961 "2005-08-30T23:29:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Templarian](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/templarian/32/7152_2.png) [@Templarian](https://forum.kirupa.com/u/Templarian)
#### Post date: [August 30, 2005, 11:29pm UTC](https://forum.kirupa.com/t/code-on-frame-moving-object/160961/1 "2005-08-30T23:29:31Z")

</div>

```auto
for(x=1;x<=9;x++){
**["txt"+Number(x)]._x** = parseInt(this["textx"+Number(x)]);
}

```

Flash gives me an error when i try to run this on a frame (its in load text things) it works when i looks like this.

txt1.\_x = parseInt(this.textx1);

the bolded part that is changed in the top is whats wrong.
