# Remember a variable?

**URL:** <https://forum.kirupa.com/t/remember-a-variable/205731>\
**Category:** flash\
**Created:** [November 1, 2006, 1:24pm UTC](https://forum.kirupa.com/t/remember-a-variable/205731 "2006-11-01T13:24:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bennymartensson](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bennymartensson/32/1317_2.png) [@bennymartensson](https://forum.kirupa.com/u/bennymartensson)\
**Post date:** [November 1, 2006, 1:24pm UTC](https://forum.kirupa.com/t/remember-a-variable/205731/1 "2006-11-01T13:24:08Z")

</div>

I have a navigation that contains main buttons with sub buttons under each. On each sub button I have this to load my external swf’s. The navigation is loaded into level100. Check it out here [http://www.gregory.se/flash.html](http://www.gregory.se/flash.html)

```auto

_level0.mcl.loadClip ("main"+_root.num+"/sub"+itemnum+".swf", 50); 

```

The **\_root.num** and the **itemnum** are the variables that change depending on what I’ve clicked in my menu system.

In my sub swf’s I have to manually declare these variables (the same numbers as the one above) cause I don’t know how to get them from that swf to this? I need them to be able to load the correct xml file.

```auto

var main:Number = 1;
var sub:Number = 1;
myXML.load("main"+main+"/xml/sub"+sub+".xml")

```
