# Handing over variables between levels

**URL:** https://forum.kirupa.com/t/handing-over-variables-between-levels/168719
**Category:** Uncategorized
**Created:** [November 9, 2005, 3:10pm UTC](https://forum.kirupa.com/t/handing-over-variables-between-levels/168719 "2005-11-09T15:10:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mucho](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@mucho](https://forum.kirupa.com/u/mucho)
#### Post date: [November 9, 2005, 3:10pm UTC](https://forum.kirupa.com/t/handing-over-variables-between-levels/168719/1 "2005-11-09T15:10:22Z")

</div>

Hi all,

there is the main SWF which loads and external SWF.  
On the external SWF through XML I post a variable on \_level0 like this:

\_level0.selection = arg;

the “arg” is another external SWF, trace works fine. Then I`m trying to load this SWF that is defined by the “arg” (\_level0.selection) into a container.

This:  
\_level0.containerMC.loadPic(3);

works, this:  
\_level0.containerMC.loadPic(arg);  
or  
\_level0.containerMC.loadPic(\_level0.selection);

won`t.

can you tell me why?

thanx,  
m.
