FW Quick Make dynamic button four states

Source: Internet
Author: User
Tags modify
button | dynamic
The button is one of the important elements of the Web page and plays a very important role in the Web page. It mainly plays two roles: the first is to play a suggestive role, there is a hint of text or graphics to tell the browser what the effect of clicks, such a button can be a static picture, mainly let the viewer understand what the role of click it, or even just a small more beautiful picture. The second is the role of dynamic response, that is, the browser in different operations, the button can show different effects, response to different mouse time.

Such dynamic Web page buttons generally have four states, that is, up (release), Over (sliding), down (pressed) and over while down (slid down), to edit the link or behavior of the button to set the button's active area (active region).

Today we're going to introduce how to make the button four-state quickly in fireworks. The end of the article provides the original document for everyone to download reference.


(1) Create a new file in fireworks with a size of 200x60, draw a rounded rectangle using the rounded Rectangle tool on the toolbox, and set the fillet value to 47 in the property panel to get the image shown in Figure 1.


Figure 1 Rectangle with rounded corners drawn
(2) then select "Gradient" >> "Linear" in the Fill setting in the Properties panel, that is, select a linear fill and set the first color block value to #b6b6b6 in the floating color box, and the second color block value to #ffffff to get the image shown in Figure 2.


Figure 2 Setting a gradient fill
(3) Because now is the left and right gradient, we want to implement the gradient, in fact, as long as the adjustment of the gradient fill the joystick can be, as shown in Figure 3.


Figure 3 Adjusting the control lever
(4) Press and hold the ctrl+shift+d to clone the rounded rectangle, and then draw a rectangle using the Rectangle tool on the toolbox, and use the selection tool to hold down the Shift key while selecting the rectangle and the rounded rectangle that is derived from the clone, as shown in Figure 4.


Figure 4 Selecting both rectangular and rounded rectangles
(5) Click on the "Modify" menu, select "Combine Paths" (Combination path) >> "Punch" (drilling), two paths to use punch effect, the image shown in Figure 5.


Fig. 5 Image effect after punching
(6) To select the shape of the hole, in the Properties panel, set its stroke to none, the first color block of the linear fill is set to #3399ff, the second color block is set to #d0f3fd, the control lever is adjusted appropriately, and the opacity set to 70% in the property panel is given as the image shown in Figure 6.


Figure 6 Adjusting the fill effect
(7) In order to achieve the effect of high light, we will display the canvas to 400%, and then click on the Pen tool on the toolbox to draw the path shown in Figure 7.


Figure 7 Drawing Path

(8) Adjust the path opacity to 90%, switch to 100% view, and adjust some fill effect to make it achieve the best visual, the image shown in Figure 8.


Figure 8 Effect after adding a path
(9) Add the text and add a glow effect to the text, setting the glow color to white to get the image shown in Figure 9.


Figure 9 Adding text
(10) The ratio of canvas display to 400%, with a round tool and pen to draw a simple magnifying glass image, line color is white, no fill. As shown in Figure 10.


Figure 10 Drawing "Magnifier"
(11) Switch to 100% view, then select the rounded rectangle below and add a shadow effect to its property panel, and finally we get the button image shown in Figure 11.


Figure 11 Button Image
(12) Open the previously made button image, press CTRL + A to select all objects, and press Ctrl+g to group all objects, as shown in Figure 12.


Figure 12 Combining all objects
(13) Press F8 to select the Convert to button checkbox in the Pop-up Symbol Properties dialog box and name it, as shown in Figure 13.


Figure 13 Converting a grouped object to a button symbol
(14) Click "OK", this time found that the combination has been converted to the button image, the object has been added slices, and the lower left corner has a small arrow icon, that is now a button symbol.

We want to make a button image for each state so just double click on the object to pop up the button editor shown in Figure 14. Select the "Import a button" button in the lower left corner. We can even import fireworks with its own button library, making it easier for us to make buttons, as shown in Figure 15.

In addition fireworks "Edit" >> "Libraries" menu with animations (animation), bullets (small icon), Buttons (button) and themes (theme) Four symbols library, respectively, as shown in figures 15 to 18 , using them we can easily produce a lot of exquisite effects, where readers can try it on their own.


Figure 14 Button Editor


Figure Animations Symbol Library


Figure Bullets Symbol Library


Map Buttons Symbol Library


Figure Themes Symbol Library

(15) button'sUp statusWe choose the original button state, do not make changes, and then we select the button over the status bar, this time found that the inside is blank, as shown in Figure 19. Do not worry, click we can copy up state button image to over state, and then appropriately modify the text and fill the color can make a good button over state, as shown in Figure 20.


Figure 19 button over state no image


Figure 20 Copying the up state modified effect
(16) Use the same way in the Down option bar copy over state of the button image, and then adjust the button fill and font color, etc., to get the button shown in Figure 21 down state image.


Figure 21 down state of the button
(17) Then use the above method to make the button over the while down state image effect, as shown in Figure 22.


Figure 22 the over while down state of the button
(18) Then select the Active Area option bar and drag the slice of the active region using the mouse to make it match the size of the button, as shown in Figure 23.


Figure 23 Setting the button activity area
(19) After the completion of the Select "Done" button, back to the workspace, switch to the 4-mode image Preview to see the effect of the button, as shown in Figure 24, so that our response button on the production.Original File Download


Figure 244 View mode Preview button effect


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.