# Using multiple variables to point to a movieclip

**URL:** <https://forum.kirupa.com/t/using-multiple-variables-to-point-to-a-movieclip/322629>\
**Category:** Uncategorized\
**Created:** [May 27, 2011, 2:15pm UTC](https://forum.kirupa.com/t/using-multiple-variables-to-point-to-a-movieclip/322629 "2011-05-27T14:15:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skribble](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@Skribble](https://forum.kirupa.com/u/Skribble)\
**Post date:** [May 27, 2011, 2:15pm UTC](https://forum.kirupa.com/t/using-multiple-variables-to-point-to-a-movieclip/322629/1 "2011-05-27T14:15:55Z")

</div>

```auto
map = ["map"+currentMap];
area = ["area"+currentArea];
mapArea = map.area;

```

mapArea is tracing undefined.  
Is there any way to reference a movieclip in this way?  
The movieclip I want to reference is called “area0”, and its contained inside “map0” on root. So: map0.area0;  
currentMap and currentArea are both tracing ‘0’ correctly.

Any help would be greatly appreciated. Thanks!
