# loadMovie and then using the variables from that loadedmovie

**URL:** https://forum.kirupa.com/t/loadmovie-and-then-using-the-variables-from-that-loadedmovie/51217
**Category:** flash
**Created:** [May 11, 2004, 12:46am UTC](https://forum.kirupa.com/t/loadmovie-and-then-using-the-variables-from-that-loadedmovie/51217 "2004-05-11T00:46:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Soul814](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@Soul814](https://forum.kirupa.com/u/Soul814)
#### Post date: [May 11, 2004, 12:46am UTC](https://forum.kirupa.com/t/loadmovie-and-then-using-the-variables-from-that-loadedmovie/51217/1 "2004-05-11T00:46:07Z")

</div>

If I run this on flash1.swf

```auto
_root.container.loadMovie("enemy.swf");

```

Then on the second one I have a movie clip with this

```auto
onClipEvent (load) {
	_root.enemyname = "Dragon";
	_root.enemydef = 5;
}

```

Then back on flash1.swf why can’t I do trace(\_root.enemydef); I get undefined.
