hey, I know this is possible becuase I’ve done it in the past but I was talked through the process. Sorry if there terms aren’t used (or used incorrectly).
So here is my layout.
I have stage 1: Has action script stop(); and then a layer with the movie clip “stage” and these are all on frame 3 (preloader in on frame 1).
Within the mc “stage” there are four layers “actions, buttons, content, bg”).
Within the buttons layer I have the following code
b1.onRollOver = over;
b1.onRollOut = out;
b1.b1_button_text.b1_text.text = "HOME";
b2.onRollOver = over;
b2.onRollOut = out;
b2.b1_button_text.b1_text.text = "PORTFOLIO";
b3.onRollOver = over;
b3.onRollOut = out;
b3.b1_button_text.b1_text.text = "RESUME";
b4.onRollOver = over;
b4.onRollOut = out;
b4.b1_button_text.b1_text.text = "PRODUCTS";
b5.onRollOver = over;
b5.onRollOut = out;
b5.b1_button_text.b1_text.text = "CONTACT";
function over() {
this.gotoAndPlay('b1_rollover');
}
function out() {
this.gotoAndPlay('b1_rollout');
}
within the content layer I have various tweens that show various content (ex: frame 1-50 shows Contact (with a stop action at 50, frames 100-150 show home (stop actions at 150) etc… (note these aren’t actual position and frames in my movie, just examples).
Alright, now within the background I have two of these sections. 1-150 is bg_in which animates the background into play (with a stop at 150) and 160 - 210 animates the bg out (with stop at 210)…
Ok, now that its all clear what I have this is what I want.
I want it so that if someone clicks on b1 “HOME” it goes to the preloader and then somehow through actions script at the end of the preloader it goes to the bg movie where it plays the bg in and then this layer has actionscript in it that determines that I had pressed “Home” and then plays the “Home” content movie. After that if someone clicks “Contact” it plays the bg out and then goes to the preloader and plays bg in and then bg determines that I have clicked “contact” and playst he contact content.
I think I’ll stop there becuause I may be confusing and you probably already know what I am talking about.
Basically, I want this. I want each button to first play bg_out and then go to the preloader and then play bg_in and then load the content for that specific button. Of course, when the movie first starts it must play BG in and play “Home” without having to have clicked the button and I want it so that if they click the home button again it does not play the movie again becuase it already knows it is at the “home” position. This also must be the same with the other buttons.
Hmm, I might have just gotten ahead of myself but I know that i have done this before haha. I basically assigned each button a number value and on click the value was changed.