# Loading inside an already loaded movie... \_root n stuff

**URL:** <https://forum.kirupa.com/t/loading-inside-an-already-loaded-movie--root-n-stuff/34060>\
**Category:** flash\
**Created:** [October 27, 2003, 6:58pm UTC](https://forum.kirupa.com/t/loading-inside-an-already-loaded-movie--root-n-stuff/34060 "2003-10-27T18:58:32Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![CoDe\_ReD](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/code_red/32/336_2.png) [@CoDe\_ReD](https://forum.kirupa.com/u/CoDe_ReD)\
**Post date:** [October 27, 2003, 6:58pm UTC](https://forum.kirupa.com/t/loading-inside-an-already-loaded-movie--root-n-stuff/34060/1 "2003-10-27T18:58:32Z")

</div>

2 Questions:

I am making a site and I want to make seperatie directories for the menu, and the content files. I have made a .swf with a menu in it (index.swf). This menu has a little animation that is loaded externally (topanim.swf). I have set up my site maps like this:

Site (Contains mainindex.fla)  
||  
||=\>Menu (Contains index.swf and topanim.swf)  
||  
||=\>Left(Contains content index, leftindex.swf)  
||  
||=\>Content (Contains content pages, example: home.swf)

I have made a little border, and saved this in the leftindex.swf. The content pages should be loaded into this file. So I have made an empty mc (in the leftindex.swf) with the instance name leftcontent. I have only done this with the contentstuff and not with the menu.

I have created a empty page, named mainindex.swf. I’ve placed 2 empty mc’s on this page that load the menu (index.swf) and the content border (leftindex.swf).

The menu loads fine except the little animation. How do I fix this?

And also how do I load the content pages (home.swf) into the border by pressing a button in the menu?

I know it’s a little complicated, and it can be done a lot easier, but I want to do it this way. It’s too hard for me to explain in english why.

Please help me…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 27, 2003, 7:36pm UTC](https://forum.kirupa.com/t/loading-inside-an-already-loaded-movie--root-n-stuff/34060/2 "2003-10-27T19:36:12Z")

</div>

maybe it’s better to post your .fla(-:

scotty

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 27, 2003, 7:44pm UTC](https://forum.kirupa.com/t/loading-inside-an-already-loaded-movie--root-n-stuff/34060/3 "2003-10-27T19:44:16Z")

</div>

That’s the problem, I have 4 different fla files and they are all in different folders, it wouldn’t work.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 27, 2003, 8:08pm UTC](https://forum.kirupa.com/t/loading-inside-an-already-loaded-movie--root-n-stuff/34060/4 "2003-10-27T20:08:07Z")

</div>

i’ll give it a try, about your little animation, i guess it has something to do with \_root, if you used it in the animation, try \_parent instead (or “this”)  
the other thing you could try with global variables.  
in the first frame of your main movie:  
[AS]\_global.homemovie = false:[/AS]  
on your menubutton:  
[AS]on(release){  
\_global.homemovie = true;  
}[/AS]  
and on your empty mc in leftindex:  
[AS]onClipEvent(enterFrame){  
if(homemovie=true){  
this.loadMovie(“home.swf”);  
}  
}[/AS]

i don’t know if this works, but you can give it a try:h:

scotty

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 27, 2003, 8:09pm UTC](https://forum.kirupa.com/t/loading-inside-an-already-loaded-movie--root-n-stuff/34060/5 "2003-10-27T20:09:43Z")

</div>

Thnx! Gonna try is later, first a little bit of warcraft 3…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 27, 2003, 9:51pm UTC](https://forum.kirupa.com/t/loading-inside-an-already-loaded-movie--root-n-stuff/34060/6 "2003-10-27T21:51:16Z")

</div>

Sorry doesn’t seem to work…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 28, 2003, 12:03am UTC](https://forum.kirupa.com/t/loading-inside-an-already-loaded-movie--root-n-stuff/34060/7 "2003-10-28T00:03:51Z")

</div>

you’re right:ne:  
forget about the code in the first frame in your main movie(skip it)  
leave the code on your button.  
in the first frame of your leftindex movie:  
[AS]\_global.homemovie = false;  
this.onEnterFrame = function() {  
if (homemovie == true) {  
leftcontent.loadMovie(“home.swf”);  
delete this.onEnterFrame;  
}  
};[/AS]

hope this helps

scotty

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 28, 2003, 2:26pm UTC](https://forum.kirupa.com/t/loading-inside-an-already-loaded-movie--root-n-stuff/34060/8 "2003-10-28T14:26:31Z")

</div>

I’m very sorry but both of the things do not work. BTW, I’m dutch too so maybe you can explain in het Nederlands?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 28, 2003, 2:42pm UTC](https://forum.kirupa.com/t/loading-inside-an-already-loaded-movie--root-n-stuff/34060/9 "2003-10-28T14:42:46Z")

</div>

i’ve sent you a PM

scotty

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 28, 2003, 3:13pm UTC](https://forum.kirupa.com/t/loading-inside-an-already-loaded-movie--root-n-stuff/34060/10 "2003-10-28T15:13:15Z")

</div>

I’ve mailed you…
