# Var referencing question

**URL:** <https://forum.kirupa.com/t/var-referencing-question/244697>\
**Category:** Uncategorized\
**Created:** [November 21, 2007, 12:06am UTC](https://forum.kirupa.com/t/var-referencing-question/244697 "2007-11-21T00:06:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![InfinitySquared](https://avatars.discourse-cdn.com/v4/letter/i/41988e/32.png) [@InfinitySquared](https://forum.kirupa.com/u/InfinitySquared)\
**Post date:** [November 21, 2007, 12:06am UTC](https://forum.kirupa.com/t/var-referencing-question/244697/1 "2007-11-21T00:06:56Z")

</div>

say i have a series of vars…

var level = 1;

var myArray1:Array =  
[  
[1, 0, 1, 1, 0]  
[0, 0, 1, 0, 0]  
];  
var var myArray2:Array =  
[  
[1, 0, 1, 1, 0]  
[0, 0, 1, 0, 0]  
];  
var myArray3:Array =  
[  
[1, 0, 1, 1, 0]  
[0, 0, 1, 0, 0]  
];

then i want to reference the current tileMap array

how would I combine “myArray” and the level var to reference 1 var?

is this possible?
