# \[mx04pro\] setProperty problem with array

**URL:** <https://forum.kirupa.com/t/mx04pro-setproperty-problem-with-array/159098>\
**Category:** flash\
**Created:** [August 14, 2005, 8:05pm UTC](https://forum.kirupa.com/t/mx04pro-setproperty-problem-with-array/159098 "2005-08-14T20:05:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![poomoo](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@poomoo](https://forum.kirupa.com/u/poomoo)\
**Post date:** [August 14, 2005, 8:05pm UTC](https://forum.kirupa.com/t/mx04pro-setproperty-problem-with-array/159098/1 "2005-08-14T20:05:17Z")

</div>

troops,

im not sure how what im doing wrong here. im trying to set x cords which im pulling from an array ‘xPos’. setproperty will not work when using an array but will work using the random method (as commented out below).

anyone got any idea what i am doing wrong?

```auto

var xPos:Array = Array([188], [286], [687])

var num:Number = 2
 for (i=0; i<num; i++) {
     
     duplicateMovieClip(mymc, "mymc"+i, this.getNextHighestDepth());

     var xNum:Number = xPos*

     //var xNum:Number = random(700);

     setProperty(eval("mymc"+i), _x, xNum);

}

```

cheers,
