# Dynamically created objects

**URL:** <https://forum.kirupa.com/t/dynamically-created-objects/245734>\
**Category:** flash\
**Created:** [December 3, 2007, 2:58pm UTC](https://forum.kirupa.com/t/dynamically-created-objects/245734 "2007-12-03T14:58:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Intravenus](https://avatars.discourse-cdn.com/v4/letter/i/e480ec/32.png) [@Intravenus](https://forum.kirupa.com/u/Intravenus)\
**Post date:** [December 3, 2007, 2:58pm UTC](https://forum.kirupa.com/t/dynamically-created-objects/245734/1 "2007-12-03T14:58:59Z")

</div>

When dynamically creating movieclips, we can give them names by which they can be referenced like this

```auto
for (a=0; a<clipTot; a++){
var tmpClip:MovieClip = this.createEmptyMovieClip("clip" + a, a + 1);
}

```

This way I could use:

```auto
this.clip2._x = blah blah etc etc

```

How would I go about doing the same thing when creating Objects instead of movieClips?
