# Access movieclip via AS3

**URL:** <https://forum.kirupa.com/t/access-movieclip-via-as3/250348>\
**Category:** Uncategorized\
**Created:** [January 28, 2008, 8:09pm UTC](https://forum.kirupa.com/t/access-movieclip-via-as3/250348 "2008-01-28T20:09:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafnews](https://avatars.discourse-cdn.com/v4/letter/r/f17d59/32.png) [@rafnews](https://forum.kirupa.com/u/rafnews)\
**Post date:** [January 28, 2008, 8:09pm UTC](https://forum.kirupa.com/t/access-movieclip-via-as3/250348/1 "2008-01-28T20:09:26Z")

</div>

Hi,

in frame 1, i added several movieclips using an array as following

```auto

    this.addChild(arrayBlueMask*);

```

where arrayBlueMask contains “i” movieclip of mc\_BlueCube.

now in frame 2 i would like to access to each of those “i” mc\_BlueCube instances, so i tried :

```auto

var tmpCube:mc_BlueCube;
var j:Number;
tmpCube = new mc_BlueCube();    
for(j=0;j<i;j++)
{
   tmpCube.name = (mc_BlueCube)(('mc_BlueCube'+j).name) // instance name
   // here i should change the other property of this ('mc_BlueCube'+j) object
}

```

…but it does not work.  
any idea ?

thanks a lot,

A.
