O’Reilly Programming Flex 2 phần 8

Bạn đã từng nghe thuật ngữ podcast, đó là bộ sưu tập những âm thanh hay video được truyền trên Internet và chơi trên những máy nghe nhạc (media player). Đến với theflexshow người nghe sẽ tìm thấy những podcast chuyên nói về công nghệ Flex (những bài hướng dẫn Flex, những buổi phỏng vấn các chuyên gia, những thông tin cập nhật). Với hàng trăm podcast, đây thực sự là nguồn thông tin bổ ích dành cho cộng đồng Flex | pixels or points though the result will always be the same regardless of what unit of measurement is specified or if none is specified . This allows you to use the same stylesheets for your Flex applications that you might use with HTML applications. The following example sets the font-size property of a class selector to 15px which is interpreted simply as 15 by Flex .example font-size 15px 2_ The Flex Style Explorer allows you to see what styles are available for à Flex components and you can adjust those settings in real time and see v ĨỊà the generated CSS to create the style settings. You can view the Flex Style Explorer at http go flex_styles_explorer_app. Instance Styles Instance styles are the styles set for a specific component instance. You can set instance styles using MXML or ActionScript. Setting instance styles using MXML is often referred to as setting an inline style because you simply set the value for an attribute in the component tag. Here s an example of a button component for which we re setting the color style mx Button label Example color red You can set many inline styles at the same time. Here s the same button with additional styles set inline mx Button label Example color red borderColor yellow cornerRadius 10 fontStyle italic You can also set styles on an instance using ActionScript via the setStyle method. The setStyle method is defined by UIComponent which means that you can call the method for all visual Flex components. The setStyle method requires two parameters the name of the style property as a string . color and the value for the property. Here s an example that sets a button component s color style color red If you want to set many styles for a component you need to call setStyle for each style. Here s an example that sets many styles for one component color red borderColor yellow cornerRadius 10 fontStyle italic If you apply .

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
18    164    1    19-05-2024
39    72    1    19-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.