TAILIEUCHUNG - Foundation Flash CS5 For Designers- P14

Foundation Flash CS5 For Designers- P14: Flash is one of the most engaging, innovative, and versatile technologies available-allowing the creation of anything from animated banners and simple cartoons to Rich Internet Applications, interactive videos, and dynamic user interfaces for web sites, kiosks, devices, or DVDs. The possibilities are endless, and now it just got better | BUILDING INTERFACES WITH THE UI COMPONENTS Here s an exercise designed to show you how the ProgressBar component works 1. Open the file in this chapter s Exercise folder. Note that a ProgressBar instance exists in frame 1 with the instance name pb as well as a text field with the instance name output. In frame 5 you ll find a fairly heavy image of red leaves on a tree branch snapped by one of the authors. In the scripts layer there s a method in frames 1 and 5. 2. Click into frame 1 of the scripts layer. Note the existing stop method. Type the following ActionScript after that method new code in bold stop completeHandler function completeHandler evt Event void piay Here first the playhead stops at this frame. Next an handler is assigned to the LoaderInfo instance associated with the root property of the main timeline. Say again Yeah this one is a bit different from what you ve seen. In the same way that the stop method is invoked here on the main timeline appearing as it does without an object reference prefix the root property is also being invoked implicitly on the main timeline. root is a property of the DisplayObject class which means MovieClip and other classes have it by inheritance. The root property refers to the topmost display object in a given display list. In this context it essentially refers to the display list of the main timeline everything that s visible or will be visible on the main timeline including that onion photo on frame 5 . The main timeline being a movie clip features a loaderInfo property which points to an instance of the LoaderInfo class that as its name suggests manages loading information for the object at hand. In this case when the movie itself has completed loading the event is dispatched and the completeHandler function invokes on the main timeline causing the playhead to resume .

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.