Sorry for the very nondescript subject of my post, but I am so confused! :sigh:
I’m making a flash site. It is NOT complex. I have the basic design structure of the site on the main timeline. Then I have the elements/pages of the site in separate movieclips. Each movieclip has a fade in, a fade out, and one frame where the page is static.
The navigation menu is on the main timeline as well. On each movieclip (acting as buttons on the menu) I have put the following code.
This one, for example, is on the “About” button.
stop();
//Code that plays a little animation on roll over of mc button
this.onRollOver = function(){
play();
}
//Now to activate transitions between movie clips when this is clicked.
this.onRelease = function(){
if (_root.about_mc._currentframe == "about") {
stop(); //saying to do nothing if the person is on the page of the button that is clicked.
} else if ( _root.home_mc._currentframe == "home") {
_root.home_mc.gotoAndPlay(1);
if (_root.home_mc._currentframe == "last") {
_root.about_mc.gotoAndPlay("fadein"); }
} else if ( _root.locations_mc._currentframe == "locations") {
_root.locations_mc.gotoAndPlay("fadeout");
if (_root.locations_mc._currentframe == "last") {
_root.about_mc.gotoAndPlay("fadein"); }
} else if (_root.pricing_mc._currentframe == "pricing") {
_root.pricing_mc.gotoAndPlay("fadeout");
if (_root.pricing_mc._currentframe == "last") {
_root.about_mc.gotoAndPlay("fadein"); }
} else if (_root.eats_mc._currentframe == "eats") {
_root.eats_mc.gotoAndPlay("fadeout");
if (_root.eats_mc._currentframe == "last") {
_root.about_mc.gotoAndPlay("fadein"); }
} else if (_root.parties_mc._currentframe == "parties") {
_root.parties_mc.gotoAndPlay("fadeout");
if (_root.parties_mc._currentframe == "last") {
_root.about_mc.gotoAndPlay("fadein"); }
} else if (_root.specials_mc._currentframe == "specials") {
_root.specials_mc.gotoAndPlay("fadeout");
if (_root.specials_mc._currentframe == "last") {
_root.about_mc.gotoAndPlay("fadein");}
}
}
I put the mcs containing the different page contents on separate layers. Yes it’s a lot of code that has to be repeated/changed across the navigation menu, but I am not sure what else to do that would be simple.
Now the problem is that when I click “About”, absolutely nothing happens. The home mc doesn’t jump to its “fadeout” frame, the about mc never loads…
Any thoughts? I’d REALLY appreciate your :2c:!!!
Sakka