Okay here is what I want to do…
Basically, I have a black bar near the bottom of my website with [COLOR=darkgreen]Home[/COLOR], About, and Contact buttons. What I would like to have happen when you click on any of the buttons is for the buttons to vanish, the black bar move to the top of the page and have it move to the bottom of the page. While the black bar is moving down the page I’d like to have the page that the button is linked to start appearing. And I must say I am a COMPLETE flash noob. Below in red are the instructions that someone gave me and the link to my flash file. I was hoping someone could take a look at it and see where I deviated from the instructions because when I test my page the buttons do not work at all. I’m in dire need of help!
www.mediafire.com/?9703cb9vjlyglcj
[COLOR=DarkRed]in the root of your flash, have four layers.
In the second, get all of your buttons in a single movie clip. Give it the instance name “buttons”. go into that movie clip, and give all the buttons instance names (I’d use “home”, “about” and “contact” :P)
In the third, get your bar in another movie clip, and give it the instance name “bar”
In the fourth layer, put your pages in seperate keyframes, one after the other (make sure all other layers have just one keyframe at frame one, apart from the blank one at the top which should also have 3)
In the bar movieclip, add a blank layer above it, and keyframe it at 1, 2 and, say, 20.
Then animate your bar as you wish, having it’s height peak at 20, and then give it another 20 frames to fall back down again (it doesn’t have to be 20).
at frame one of the blank layer, hit F9 and type the code:
Code:
stop();
_root.buttons._visible=true;
in frame 2, put
Code:
_root.buttons._visible=false;
and at frame 20, put
Code:
_root.gotoAndPlay(_root.pv);
now go into the root again, and back into your buttons movie clip. Give each button this code:
Code:
on (release) {
_root.pv = X;
_root.bar.gotoAndPlay(2);
}
and change X in each button for it’s relative frame number in the root.
Lastly, back in the root, add a “stop();” to every frame on the blank layer.[/COLOR]