Flash CS4 All-in-One For Dummies- P20

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 Wingdings 16 about new Button textFormat btnFormat 508 112 30 22 addChild about contact new Button textFormat btnFormat 508 224 30 22 addChild contact links new Button h textFormat btnFormat 508 334 30 22 addChild links Save the file and test your application. Figure 3-10 shows what the buttons in .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
261    80    3    17-05-2024
Đã 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.