Đang chuẩn bị liên kết để tải về tài liệu:
Flash CS4 All-in-One For Dummies- P20

Không đóng trình duyệt đến khi xuất hiện nút TẢI XUỐNG

Flash CS4 All-in-One For Dummies- P20: Welcome to Flash CS4 All-in-One For Dummies. Our goal when writing this book was to share our enthusiasm for Flash and, at the same time, demystify the application. You can do so many things with Flash that it becomes mind boggling. The minibooks in this reference are designed to take the boggle out of your mind and show you how to use Flash to create Web banners, animations, and other delights. We also delve into the topics of ActionScript and Flash video. | Styling Code 557 Figure 3-9 Label UI component with styled text. Because Blackoak Std is a wider font than Comic Sans MS you would have to change the width of the Label component to see all the label text. The heights of the two fonts are close to the same however. When you use different fonts with UI components you have to make adjustments based on the font family in use and the selected font size. Book VII Chapter 3 Styling the Button components In the fast world of the Internet you often see icons on buttons to show the user at a glance what those buttons are for. In this section you see how to add graphic characters to buttons by using the Wingdings font which features graphic symbols instead of just alphanumeric characters. Note The Wingdings font is a common graphics font. If you don t have it in your system use another with symbols of your own choosing. The plan is to place the following symbols from the Wingdings font on the buttons in the application example Button Symbol Code About Contact Links h The About button has a pair of reading glasses next to it Contact a telephone and Links a couple of wavy lines. In the code you use the character to the right in brackets. The Art and Science of Creating a Flash Application 548 Styling Code Make changes to the button-code section where you see the line Buttons Replace the existing code with the following in that section of the Manage. as file Buttons btnFormat new TextFormat btnFormat.font Wingdings btnFormat.size 16 about new Button about.label about.setStyle textFormat btnFormat about.x 508 about.y 112 about.width 30 about.height 22 addChild about contact new Button contact.label contact.setStyle textFormat btnFormat contact.x 508 contact.y 224 contact.width 30 contact.height 22 addChild contact links new Button links.label h links.setStyle textFormat btnFormat links.x 508 links.y 334 links.width 30 links.height 22 addChild links Save the file and test your application. Figure 3-10 shows what the buttons in .

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.