PDA

View Full Version : my navigation is getting over my head


moethedog
03-07-2003, 04:02 PM
Hi all. I’m building a completely flash site and my situation is this. I am using a main template called index.swf which contains my main navigation and loading the different page contents into it via a blank MC with an instance name of “content,” like this.

on (release) {
_root.content.loadMovie("home.swf");
}

or

on (release) {
_root.content.loadMovie("about.swf");
}

In other words, my content keeps changing but my navigation stays the same. All is going smashing until I have one page where I need to junk my main index navigation because the look of this page needs to be completely different, so the button that leads to that new looking page looks like this

on (release) {
loadMovieNum("sitemap.swf", 0);
}

So now, I create a new navigation to this “sitemap.swf” page. On this pages navigation, the button “home” is simple, I call up

on (release) {
loadMovieNum("index.swf", 0);
}

and it loads up the full home page, including the root.content.loadMovie(“home.swf”);

but I also want to have my “about” button on this new navigation, but the problem is, I don’t know how to load both the “index.swf” and the “about.swf.” because I don’t currently have my main “index.swf” page loaded up, if you follow me.

Any suggestions explained to me like I’m a two year old would be greatly appreciated. Thanks very much. This site rules.

Ricod
03-07-2003, 04:45 PM
How about if you load the about swf in after you're done loading in the index.swf ? There are several ways for this, but how about a function, loaded in a higher level, thus not being affected by the whole (un)loading process that takes care of this ? It would need to keep track wether the index.swf is done loading and if so, then load in the about.swf (or another, if you keep that variable). Any clearer ?

moethedog
03-07-2003, 05:13 PM
I'm not really following at the moment, I'm quite the newbie, but I will experiment a little more with your suggestions. If anyone has any more suggestions (and some code :)), that would be great too. Thanks

boyzdynasty
03-10-2003, 04:46 PM
Ricod is just saying that...after you load index.swf...(make sure it finish loading first)

Then load about.swf on top of it (higher/different level)

But he is telling you to use functions.

*lol*

Using functions will have you keep from writing up repetitive code.

moethedog
03-10-2003, 08:29 PM
I shall make functions my next course of study. Thanks for the good tips :) Peace Out!