web| Menu | navigation | news
In this tutorial we use Flash8 actionscript to make a cube flash menu.
First look at the effect:
Click here to download the source file
1, create a new Flash document, guide as a picture, and then into a graphical component cube.
2, and then create a new button component: Invisible buttons:
3. Set up 3 layers in Scenario 1:
4, put the button on the stage to fit the position:
5, the production of dynamic effects, create a home movie clips, the method is relatively simple, I here to give you a simple cut a few figures:
Animation settings for frame 1th:
Animation settings for frame 6th:
Add a new text layer, and the 1th frame text alpha is set to 0:
The last Keyframe plus stop ().
6, put the components on the stage, named instance Name:
Repeat the above steps to make another movie clip.
7, and then add action to each button. Here are the actions that you add to the home movie clip:
On (rollover) {
_root.mouse_over_home = true;
}
On (RollOut) {
_root.mouse_over_home = Fstartlse;
}
On (release) {
GetURL ("http://www.webjx.com/", "blank");
}
It is then possible to change the home to the corresponding instance name.
8. Select the first frame of the topmost layer and enter the following action:
_root. Home.onenterframe = function () {
if (mouse_over_home) {
_root. Home.nextframe ();
} else {
_root. Home.prevframe ();
}
};
_root. Forum.onenterframe = function () {
if (Mouse_over_forum) {
_root. Forum.nextframe ();
} else {
_root. Forum.prevframe ();
}
};
_root. Blog.onenterframe = function () {
if (Mouse_over_blog) {
_root. Blog.nextframe ();
} else {
_root. Blog.prevframe ();
}
};
_root. Download.onenterframe = function () {
if (mouse_over_download) {
_root. Download.nextframe ();
} else {
_root. Download.prevframe ();
}
};
_root. Link.onenterframe = function () {
if (Mouse_over_link) {
_root. Link.nextframe ();
} else {
_root. Link.prevframe ();
}
};
_root. Contact.onenterframe = function () {
if (mouse_over_contact) {
_root. Contact.nextframe ();
} else {
_root. Contact.prevframe ();
}
};
Then you can press Ctrl+enter to test the film.