# Referencing MovieClip Properties from an Array

**URL:** <https://forum.kirupa.com/t/referencing-movieclip-properties-from-an-array/219895>\
**Category:** flash\
**Created:** [March 20, 2007, 11:19pm UTC](https://forum.kirupa.com/t/referencing-movieclip-properties-from-an-array/219895 "2007-03-20T23:19:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KilgoreTrout67](https://avatars.discourse-cdn.com/v4/letter/k/ecccb3/32.png) [@KilgoreTrout67](https://forum.kirupa.com/u/KilgoreTrout67)\
**Post date:** [March 20, 2007, 11:19pm UTC](https://forum.kirupa.com/t/referencing-movieclip-properties-from-an-array/219895/1 "2007-03-20T23:19:44Z")

</div>

```auto
container_mc = _root.createEmptyMovieClip ("Page_Container_mc",100);
pageContent = new Array ();
for (var p=0; p<5 ; p++) {
            pageContent[p] = container_mc.attachMovie ("Page Content "+p, "page_content"+p, 1000+p*100); // "Page Content 1"... are linked from library
            pageContent[p]._y = 300; // won't work because ???
    }

```

Hi all,

As you can see from the above code, I’m trying to create a set of MovieClips and save a reference to each in an Array so I can easily access them and their props/methods.

I must be having a brain-lapse because I can’t get this to work. Any ideas on this or a better approach?

Any help is greatly appreciated. Cheers.
