Ok, I will see if I can explain my file.
<B>Layer “Actions”</B> -
//mouse over movie clip to reveal button
_root.slideMc.onRollOver = function() {
this.gotoAndPlay(2);
};
This allows the movie clip to slide away when your mouse rolls over it.
Layer “MC” - Contains the movie clip that you want to slide away. Frame one of the clip contains a stop() action so it stays over the button. The actions in layer “actions” make this clip play frame 2 - 10 (where the next stop() is located). This tween slides the clip away from over the button.
Layer “Button” -
// when mouse rolls off button, close movie clip to hide
on (rollOut) {
_root.slideMc.gotoAndPlay(11);
}
These actions are applied to the button tell the movie clip in layer “MC” to play frame 11 through to the next stop() (which is contained in frame 1). This tween slides the movie clip back over the button. It is activated with the mouse rolls off of the button.
Explaining Buttons - Although buttons are slowly being fazed out for dynamic event handlers (the actions I used in layer “actions”), I recommend you start with learning buttons.
To create a button, draw a rectangle (or any shape you want your button to be), select it, then hit F8 and choose the radio button option for “Button”.
Frame
Up - What your button will look like when the mouse is not on it.
Over - What your button will look like when the mouse rolls over it.
Down - What your button will look like when you click it.
Hit - Used mainly for invisible buttons, just insert a keyframe here if you want it to be filled up.
To apply a link to your button that would look like this…
on (release) {
getURL("www.yoursite.com", "_blank");
}
This tells the button that after you press it it should open up www.yoursite.com in a new window. To open in the same window change “_blank” to “_self”.
If you have anymore questions, don’t hesitate to ask:)