I’m building a site which is more advanced than I’m used to :hangover:
There are only 4 buttons.
One of the buttons needs to load a larger movie than the rest, so I need to move the empty container (“pageContainer”) over to the right coordinates for this one, AND move 4 other movie clips around the stage!
I tried creating a custom function that would detect which clip was loaded, and move mc’s around based on the result, but wasn’t getting the results I needed. On top of it, I’m loading external mc’s with transitions, so using tons of AS to run this movie (should probably figure out how to do an external AS file).
Anyway, I’ve got the 4 buttons appearing in the middle of the stage. 1 of the buttons (‘b4’ for now) loads a larger mc into the container, and also moves the main navigation out of sight, loads a secondary navigation at the top, and moves 2 other movie clips out of sight.
Here is the code I tried and failed with:
movie1Loaded == 0;
function checkMovie() {
if (movie1Loaded == 0) {
// Move the navigations around
mc1.navigation.gotoAndPlay(“hideNav”);
mc1.navTop.gotoAndPlay(“showTopNav”);
movie1Loaded = 1;
} else if (movie1Loaded != 0) {
movie1Loaded == 1;
mc1.navigation.gotoAndPlay(“showNav”);
mc1.navTop.gotoAndPlay(“hideTopNav”);
};
b4.onRelease = function() {
checkMovie();
pageContainer.loadMovie(“myMovie.swf”);
};
Anyone have any better ideas? :ponder: