Flash to create a simple and stylish effect of the menu

Source: Internet
Author: User
Tags insert relative
Menu

First look at the effect

Click here to download the source file

One: Start Flash MX (nonsense)

Two: Create a new document, the other default, with a rectangular tool in the scene dragged out a rectangle of the appropriate size, and then select the main Menu--> "window"--> "Color Mixer"

"Paint" The rectangle you just dragged out in the mixer face to achieve a bright effect

The color of these 3 points is: #CCCCCC; #FFFFFF: #CCCCCC

Three: Select this graphic, press the F8, converted to graphics, Name: component One
Four: Ctrl+f8 a new movie clip, Name: Component two;

In component two, ctrl+l, open the library, drag the component one from the library to the stage, and align it with the align surface:



Five: Then, in 12 Joan inserted "Jeong"; and lock layer One, create a new Layer two (used as orange tween): With the rectangular tool to the border, draw an orange "bar" relative to the size of the button see the following figure:

And then to the 7th, to insert the key chastity, modify the orange "bar" relative to the size of the button, see the following figure

About the orange "bar" relative to the size of the button, can be modified by ctrl+i (information surface version) can also be modified through the property surface version ....

And then to 12, to insert the key zhen change back ...

PS: Can be aligned through the information surface && alignment, and then create a "shape tween" between layer 1,7,12

And the three key chastity is to add code:

Stop ();


OK, lock Layer 2

Six: Crtl+f8, new "button" components three, respectively, press three f6,ctrl+l, open the library, in the fourth key Zhen (click Area) to drag components from the library to the stage, with the alignment of the surface version:

Back to component 2, create a new layer three, drag the button you just made from the library to the scene, and cover the following components to open the action surface: Add the following code:

On (rollover) {//MC1 action performed when mouse over button
gotoAndPlay ("THIS.MC1", 2);

}
On (RollOut) {//MC1 actions performed when Mouse is left

gotoAndPlay ("THIS.MC1", 8);

}
On (release) {//press mouse, get URL address:)
GetURL ("Http://www.flash8.net", "_blank");
}

And then again, in 12, the insertion of "Jeong-ching" (reference chart)


Seven: Create a new layer four------type tool--> Add menu text information such as: "Home" (the size of the custom, color: Black), then: respectively in the second, eighth Zhen inserted "key chastity" in 12 Jeong inserted "Zhen"


Select the second chastity, and change the color of the text to white .... Back to Scene 1

Eight: from the library to the just finished component 2 dragged to the scene, named Mc1, and then, congratulations, the first button is done. Do the rest in the same way, and then put it all on the stage. All lined up right, and aligned,! A complete navigation will appear!



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.