TAILIEUCHUNG - Customizing UI Components With ActionScript

Với thành phần tùy biến giao diện người dùng phải đối mặt với ActionScript Let's it-hầu hết lập trình không thể chăm sóc ít hơn về khía cạnh thiết kế của một ứng dụng. Họ chỉ muốn nhìn thấy nó làm việc. Tuy nhiên, không có nhận được xung quanh một thực tế là trong thế giới thực, một ứng dụng tuyệt vời, tìm kiếm cũng quan trọng như là một động đúng chức năng một. Bởi vì các thành phần giao diện người dùng là yếu tố trực quan. | Customizing UI Components With ActionScript Let s face it most coders couldn t care less about the design aspects of an application. They just want to see it work. However there s no getting around the fact that in the real world a great-looking application is just as important as a properly functioning one. Because user interface components are visual elements their appearance must fit in well with the overall design of your application. Fortunately they have the built-in capability to be styled and customized in various ways using ActionScript. This allows you to easily change visual features such as colors fonts margins and more. NOTE The look of components can also be changed in more dramatic ways by using Flash s drawing tools to tinker with the graphical elements that make up a component. Because the focus of this book is ActionScript in this section we ll look only at visual aspects that can be changed using a script. Following are some of the visual aspects of components that can be changed borderColor fontSize fontStyle fontWeight marginLeft marginRight textAlign textDecoration For a complete listing and definitions of style properties that can be changed look for Supported Styles in Flash s Help documentation. Components can be styled on several different levels including individually and globally. Components can also be styled as a class such as RadioButton CheckBox or Button so that all instances of that class share the same attributes. Although this strategy may be useful in some cases individual and global styling are likely to be more commonly used so we ll focus on those techniques. When an individual component instance is styled a certain way only that instance s appearance changes. When components are styled globally all component instances are affected. NOTE Individual styling changes applied to an instance will override global styling changes in relation to that instance. To set a style property for an individual component instance such as .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.