# Multidepth Dynamic Variables

**URL:** <https://forum.kirupa.com/t/multidepth-dynamic-variables/250209>\
**Category:** flash\
**Created:** [January 27, 2008, 12:20am UTC](https://forum.kirupa.com/t/multidepth-dynamic-variables/250209 "2008-01-27T00:20:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arunforce](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@arunforce](https://forum.kirupa.com/u/arunforce)\
**Post date:** [January 27, 2008, 12:20am UTC](https://forum.kirupa.com/t/multidepth-dynamic-variables/250209/1 "2008-01-27T00:20:32Z")

</div>

Everybody knows how to do the: \_root[“file” + var] thing, I was wondering how to do a multidepth thing

say I want to create a new movieclip in the location \_root.scene.location called “box”, and I’m using a function that I pass “\_root.scene.location” under the variable location, so I could just use \_root[location].createEmtpyMovieC…

Unfortunately it doesn’t work… Any ideas?  
I know I can use \_root[“scene”][“location”].createEm…  
But I don’t need that…

Thanks,  
Arun
