Flash8 make a dynamic cube Web navigation menu

Source: Internet
Author: User
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.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.