Use Flash MX to make a pop-up windows window

Source: Internet
Author: User

Microsoft's style does not seem to be in the rut, but I don't know why the Windows interface is always unchanged. From Windows 3.x to Windows 9x, and then to Windows 2000 and Windows XP, it looks like it's always the same, and it's troublesome to change yourself. There is no way, since we have flash this useful tool, why not make full use of it? So we used flash to simulate a fun. But how does it seem to be the same? Of course, I just demonstrate that this is a demo version of the other things such as the realization of the function, interface style and function depends on all of you do It yourself.

But we today's this flash works is a simple demo version, then we basics it, or that sentence, when we are in the production of Flash, or the first clear design ideas of good, develop good habits!

Figure 1

Production ideas: There is a toolbar at the bottom of the interface, the left side of the toolbar is the "Start" button, click on the menu pop-up, and the composition of this menu should be a button, when the mouse moved to the top, and then the right pop-up menu. I believe that the Windows interface is not very unfamiliar to you, then start it.

Toolbar and Start button

1, with a rectangular tool on the scene to draw a strip without a border, the length of the best and the width of the scene consistent, to move it to the bottom of the scene; take the name of this layer as "toolbar";

2, a new layer, named "Start button", with rectangular tools and text tools to make a "start" with the words of the small rectangle, position in the toolbar left (Figure 1), and then turn it button, named "Startm."

The menu that pops up

1, a new layer, named "pop-up menu", all layers in the second frame plus keyframes. Back to the "pop-up menu" layer, the second frame to operate;

2, draw a rectangle of the appropriate size, and then use the "linear Gradint" fill the top of the rectangle to make a slender rectangle on which to write "My Windows" (see Figure 2). Select all of the layers and rotate the 90 ° counterclockwise to the top of the "Start" button. Convert it to movie Clip, the name is "pop-up";

Figure 2

3, to "pop-up" to operate, we will be the first level of the original name changed to "menu Background", new two layers, respectively, "menu Text" and "menu button." Use the text tool to write some option text in the menu text layer, and then use the Rectangle tool to make a blank button with the name "MBT", and the over frame to fill in a darker color (relative to the background color of the pop-up menu). Drag the corresponding number of "MBT" in the "menu button" layer and arrange them neatly (Figure 3).

Figure 3

pop-up menu to the right

Similar to the second step, the corresponding in the "pop-up" this MC and then a new layer, named "Program Menu", all layers in the second frame plus keyframes, the "program menu" of the second frame operation. Draw a rectangle of the right size, turn it into an MC, and the name "Progam" refers to the second step of 3, to the right pop-up menu (see Figure 4).

If there are submenus, and so on.

Figure 4

The appropriate action

1, back to the scene, in its first frame write action:

Stop ();

2, the Start button action:

Mouse click, pop-up Start Menu

On (release) {

gotoAndStop (2);

}

3, the operation of the mc:pop-up, the first frame of action:

Stop ();

4, the position of the button on the Programs action:

Mouse over it, pop up the corresponding menu

On (rollover) {

gotoAndStop (2);

}

You can see, in fact, the action of this example is very simple, just use the "jump" such a directive, in fact, the application action does not need to be very complex to achieve the desired effect; Such examples are often used in site navigation. In practical applications, just add the following action command to the button:

When the mouse clicks, get the specified URL and let the main scene return to its original state

On (release) {

GetURL ("Your URL");

_root.gotoandstop (1);

}

Of course, we do this simple flash also has some deficiencies, such as the menu outside the click does not make the menu disappear. To achieve this effect is not not not, but today my task is to enable you to simply understand the Flash MX Production pop-up window simple method, so, like these problems or leave everyone to think about it!

Related Article

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.