# F8P: loading on-screen points into an array with a loop?

**URL:** https://forum.kirupa.com/t/f8p-loading-on-screen-points-into-an-array-with-a-loop/224486
**Category:** flash
**Created:** [May 2, 2007, 6:29pm UTC](https://forum.kirupa.com/t/f8p-loading-on-screen-points-into-an-array-with-a-loop/224486 "2007-05-02T18:29:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Aesir](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@Aesir](https://forum.kirupa.com/u/Aesir)
#### Post date: [May 2, 2007, 6:29pm UTC](https://forum.kirupa.com/t/f8p-loading-on-screen-points-into-an-array-with-a-loop/224486/1 "2007-05-02T18:29:45Z")

</div>

[COLOR=gray]I want to make an array that holds objects, each object containing an x- and y-value representing the location of each mc on screen. The mcs will not move. How do I reference each mc using a variable with a loop?[/COLOR]  
[COLOR=gray][/COLOR]  
[COLOR=gray]For example, if I have the mcs _mc\_0_, _mc\_1_, _mc\_2_, _mc\_3_, … _mc\_49_[/COLOR]  
[COLOR=gray]I want to…[/COLOR]

```auto
 
var n = 50;
var myArray:Array = new Array();
   for (i = 0; i < n; i++){
   myArray.push(
**"mc_" + i // this line is far from correct**
   )
}

```

[COLOR=red]**Solved: search eval() in forum.**[/COLOR]
