tailieunhanh - adobe flash cs5 on demand part 69

Thêm và sửa Components Các thành phần được xây dựng khối mà bạn có thể sử dụng để tạo ra tương tác, năng động, tài liệu Flash. Hãy suy nghĩ của một thành phần như là một clip phim với các thông số chỉnh sửa, được đặt trong thiết kế của một tài liệu Flash và ActionScript API (API cho phép bạn tùy biến các thành phần trong thời gian chạy). Kể từ khi thành phần được tái sử dụng, họ cung cấp cho các nhà phát triển khả năng chia sẻ mã giữa các dự án. . | Adding and Modifying Components Introduction Components are building blocks that you can use to create interactive dynamic Flash documents. Think of a component as a movie clip with modifiable parameters which are set during the design of a Flash document and ActionScript APIs APIs allow you to customize the component at runtime . Since components are reusable they give developers the ability to share code between projects. You can use components created by Adobe download components created by other developers or with a bit of practice create your own components. Since components are rooted in ActionScript code Flash comes with a set of components for ActionScript and another one for ActionScript and you cannot mix components in the same Flash document. Suppose you want to create a list of options from which a visitor would be able to click and choose. You can open the Actions panel and then create the list by typing in about forty or more lines of script or you can use Flash s built-in component to create the list. The difference is not in the quality of the list but the amount of time it took to create it. Spending less time on creating dynamic interactive Flash elements gives you more time to concentrate on design features. To a Flash visitor it s not about the code or how long it took you to create it it s about the design and it will always be about the design. 18 What You ll Do Understand Basic Components Add a Text Input Add a Combo Text Box Add a Check Box Add a Radio Button Add a Text Area Add a Button Add a List Add a Label Add a Data Grid Use a Local Data Provider Add a Loader Add a Numeric Stepper Add a Progress Bar Add a Scroll Pane Create and Modify Bindings Modify Schema Modify Component Attributes Use Components to Build a Form 427 Understanding Basic Components Components are composed of two elements a movie clip and parameters allowing you to modify the components appearance and behavior. Components run the gamut from a radio button to a .