# Refering to the MAIN movie, from the ext loaded movie?

**URL:** <https://forum.kirupa.com/t/refering-to-the-main-movie-from-the-ext-loaded-movie/128158>\
**Category:** Uncategorized\
**Created:** [November 10, 2004, 1:38am UTC](https://forum.kirupa.com/t/refering-to-the-main-movie-from-the-ext-loaded-movie/128158 "2004-11-10T01:38:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neil](https://avatars.discourse-cdn.com/v4/letter/n/839c29/32.png) [@Neil](https://forum.kirupa.com/u/Neil)\
**Post date:** [November 10, 2004, 1:38am UTC](https://forum.kirupa.com/t/refering-to-the-main-movie-from-the-ext-loaded-movie/128158/1 "2004-11-10T01:38:45Z")

</div>

Umm…lets see…

```auto
_root.emptycontainer.loadMovie(_root.currSubMovie+".swf");
}

```

got this code in last frame of externally loaded swf. I am using the tut from [kirupa.com](http://kirupa.com) about the transitions of ext loaded swfs.

I have a MAIN movie with a nice menu. When i press a button in that menu, it attaches a movie (not external) and brings up the sub menu. In that sub Menu, i have bunch of buttons which load external swfs in an emptycontainer(on \_root. timeline) movie clip. Now as you see above, there is this code on the last frame of externally loaded swf (when the outro transition is over).

Now here is the problem, when i press a button on the MAIN MENU, i need the swf to do the OUTRO transition and Do not load any other movies…So, i made a condition on the last frame of ext. loaded swf…

```auto
if (_root.currMovie == "submenu_mc") {
	_root.emptycontainer.loadMovie(_root.currSubMovie+".swf");
}
// this code is on the last frame of the externally loaded swf. 

```

But not working … i want the condition \_root.currMovie == “submenu\_mc” to work…but its not working … got any ideas? :puzzle:
