TAILIEUCHUNG - O’Reilly Programming Flex 2 phần 6

Tóm lại, nếu phát triển một project hoàn toàn mới, hiển nhiên phiên bản Flex và Flash Builder mới nhất sẽ được khuyên dùng. Nó cũng cần thiết nếu phát triển các App cần dịch ra từng Native Mobile Platform như iOS, Android hoặc RIM vì nếu dùng Flex 3 thì sẽ phải gắn thêm bộ dịch của hãng thứ ba. Còn nếu chỉ với mục đích học tập, nghiên cứu hoặc tiếp quản, bảo trì một dự án Flex đã có sẵn thì không cần lăn tăn nghĩ ngợi nhiều về phiên bản Flex | define the overrides property as an array before you can add overrides to a state using ActionScript new Array Once you ve defined the overrides property as an array you can add overrides to the array exampleAddChild Adding and Removing Child Elements You can add and remove child elements in MXML using the mx AddChild and mx RemoveChild tags. The corresponding ActionScript classes are . AddChild and . When you want to add child elements using the AddChild class you must first construct a new instance var addChild AddChild new AddChild When using MXML nest the component tag within the mx AddChild tag. When using ActionScript you must assign a component reference to the target property of the AddChild object var button Button new Button Example button If you want to specify a parent you can use the relativeTo property. Simply assign a reference to the relativeTo component vbox Also just as you can specify where you want to add the child element using the position attribute of the mx AddChild tag you can use the position property of the AddChild class. The property accepts the same values firstChild lastChild before and after as the corresponding attribute. The values have the same effects as when working with MXML. When you specify a value of firstChild or lastChild the child element is added as a child of the target. When you specify a value of before or after the child element is added as a sibling of the target. If you don t specify any value or you assign a value of null the default behavior is that the component is added as the last child of the target firstChild When you want to remove a child element use the RemoveChild object and specify the child using the target property var removeChild RemoveChild new RemoveChild button 220 Chapter 10 Managing State Setting Properties and Styles To set properties and .

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.