# How do I use a variable to name a movie clip?

**URL:** https://forum.kirupa.com/t/how-do-i-use-a-variable-to-name-a-movie-clip/104838
**Category:** Uncategorized
**Created:** [March 19, 2004, 11:56pm UTC](https://forum.kirupa.com/t/how-do-i-use-a-variable-to-name-a-movie-clip/104838 "2004-03-19T23:56:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![GreenLantern](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/greenlantern/32/393_2.png) [@GreenLantern](https://forum.kirupa.com/u/GreenLantern)
#### Post date: [March 19, 2004, 11:56pm UTC](https://forum.kirupa.com/t/how-do-i-use-a-variable-to-name-a-movie-clip/104838/1 "2004-03-19T23:56:46Z")

</div>

I am trying to duplicate a move clip and then set some of it’s properties with actionscript. What’s the notation to do this?

Here is my guess:

```auto

duplicateMovieClip(_root.event, ("event"+i), i);
[event+i]._y = ([event-i]._y)+([event+i].height);
[_root.event+i].eDate = ("4/2"+i);
trace([_root.event+i].eDate);

```

Thanks in advance,  
RMB
