TAILIEUCHUNG - Flash Builder 4 and Flex 4 Bible- P8

Flash Builder 4 and Flex 4 Bible- P8: When Macromedia first released Flash MX in 2002, the product was branded as the new way to build Rich Internet Applications (known by the acronym RIA). The term was invented at Macromedia to describe a new class of applications that would offer the benefits of being connected to the Internet, including access to various types of Web-based services, but would solve many of the nagging issues that had been inherent in browser-based applications since the mid-1990s | Chapter 10 Using Layout Containers s stroke s SolidColorStroke color 000000 weight 5 s stroke s Rect s TextInput text TextInput 1 x 10 y 10 s TextInput text TextInput 2 x 70 y 52 s TextInput text TextInput 3 x 141 y 97 -- These Rect objects overlap each other with some transparency-- s Rect width 100 height 100 x 224 y 144 s fill s SolidColor color 999999 s fill s Rect s Rect width 100 height 100 x 249 y 169 alpha .5 s fill s SolidColor color 666666 s fill s Rect s Rect width 100 height 100 x 274 y 194 alpha .5 s fill s SolidColor color 000000 s fill s Rect s Group s Application On the Web The code in Listing is available in the Web site files as in the chapter10 project. The completed application is shown in Figure . Using VGroup and HGroup The VGroup and HGroup components share all the features of Group and add flow-based layout logic. Along with automatic vertical or horizontal alignment these components implement the following properties that determine padding alignment and gaps verticalAlign. HGroup only. Should be set to top middle bottom justify or contentJustify. horizontalAlign. VGroup only. Should be set to left center right justify or contentJustify. gap. Should be set to a number of pixels between objects. This does the same thing as verticalGap and horizontalGap for MX Box containers but is applied differently depending on which Spark container you re using when used with HGroup it s applied to the horizontal gap and when used with VGroup it s applied to the vertical gap. 321 Part II Designing Flex Applications FIGURE An application with a Group that contains MXML graphics and other Flex components The application in Listing declares an HGroup inside a Group. The outer Group implements the border with an MXML graphic the nested HGroup lays out its child objects three Textinput controls from left to right. LISTING An application with an HGroup nested inside a Group xml version encoding utf-8 s Application xmlns

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.