# Question

**URL:** https://forum.kirupa.com/t/question/7415
**Category:** Uncategorized
**Created:** [October 30, 2002, 4:34pm UTC](https://forum.kirupa.com/t/question/7415 "2002-10-30T16:34:15Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Raydred](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/raydred/32/65_2.png) [@Raydred](https://forum.kirupa.com/u/Raydred)
#### Post date: [October 30, 2002, 4:34pm UTC](https://forum.kirupa.com/t/question/7415/1 "2002-10-30T16:34:15Z")

</div>

Hey guys whats up?

Im trying to figure something out,

Whenever i do my coding etc and i want to set a dynamic mc, i use the old school coding like this…

setProperty(“myMc” add i,\_x, 2);

right, well whats the coding stlye in mx? I havent figured that out. i would want to do something like

\_root.(“myMc” add i).\_x = 2;

But im not sure whats proper, any ideas?

- Raydred

---

<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: [October 30, 2002, 5:03pm UTC](https://forum.kirupa.com/t/question/7415/2 "2002-10-30T17:03:21Z")

</div>

close…

\_root[“myMc” + i].\_x = 2;

---

<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: [October 30, 2002, 5:16pm UTC](https://forum.kirupa.com/t/question/7415/3 "2002-10-30T17:16:02Z")

</div>

alrighty =) well i tried that, no worky…

check out my code…  
this works…:

setProperty(“fx” add i,\_x, startx + Number(i\*kern));  
setProperty(“fx” add i,\_visible, true);

this doesnt… hmm… any thoughts?

\_root[“fx” + i].\_x = startx + Number(i\*kern);  
\_root[“fx” + i].\_visible = true;

ps. and i do have the path correct =)

---

<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: [October 30, 2002, 5:24pm UTC](https://forum.kirupa.com/t/question/7415/4 "2002-10-30T17:24:21Z")

</div>

I had the same problem. What I did was to evaluate the expression first and then assign that variable to the \_x property

abcd=startx + i\*kern;

\_root[“fx” + i].\_x = abcd;

Try this! Hope this helps!

---

<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: [October 30, 2002, 5:54pm UTC](https://forum.kirupa.com/t/question/7415/5 "2002-10-30T17:54:06Z")

</div>

hmm, still not working right, but thanks ! =)  
i’ll keep that in mind and i’ll play with it some more lol =)

---

<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: [October 31, 2002, 12:27am UTC](https://forum.kirupa.com/t/question/7415/6 "2002-10-31T00:27:18Z")

</div>

run this:

trace(“clip=” + eval(“fx” + i));

and tell me what’s traced.

---

<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: [October 31, 2002, 11:04pm UTC](https://forum.kirupa.com/t/question/7415/7 "2002-10-31T23:04:52Z")

</div>

this is what is outputed…

clip =

=) i tried the eval and no worky… not sure whats up, seems like sometimes AS doesnt work for me, must be a curse lol jk

---

<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: [October 31, 2002, 11:32pm UTC](https://forum.kirupa.com/t/question/7415/8 "2002-10-31T23:32:32Z")

</div>

was that trace action right underneath your setProperty code?

put it there and see what it traces.
