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

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…

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

scotty

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

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

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

Sorry doesn’t seem to work…

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

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?

i’ve sent you a PM

scotty

I’ve mailed you…