# How the level names could replace with variables?

**URL:** <https://forum.kirupa.com/t/how-the-level-names-could-replace-with-variables/203092>\
**Category:** Uncategorized\
**Created:** [October 7, 2006, 1:18pm UTC](https://forum.kirupa.com/t/how-the-level-names-could-replace-with-variables/203092 "2006-10-07T13:18:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasvarghese](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jasvarghese](https://forum.kirupa.com/u/jasvarghese)\
**Post date:** [October 7, 2006, 1:18pm UTC](https://forum.kirupa.com/t/how-the-level-names-could-replace-with-variables/203092/1 "2006-10-07T13:18:45Z")

</div>

Hai Experts…  
anybody can help me???

I’ve a problem with accessing different levels…

actually i’m in the 6th level of my swf and i need to access a movieClip in the 2nd level .

Is it possible to use variable names instead of giving the real level name and movieClip…

My code is something like this…

var levelData:String = \_level2.mc\_myMovie;

levelData.onRelease = function()  
{

}  
Is there any alternatives for this one?

It will be very useful if somebody give me a solution.  
Thanks in advance.
