Đang chuẩn bị liên kết để tải về tài liệu:
Flash Builder 4 and Flex 4 Bible- P6

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Flash Builder 4 and Flex 4 Bible- P6: 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 7 Working with Events As shown in Figure 7.8 the Variables view displays the event object s type and all its current property values. FIGURE 7.8 The event object s type displayed in the Variables view Reading the documentation Documentation for every event in the Flex SDK includes the type of the event object that will be dispatched when the event occurs. For example the documentation for the Button class s click event shows that the event object is an instance of flash.events.MouseEvent. To find this information follow these steps 1. Place the cursor in the object declaration in Source view. 2. Press F1 to display a list of Help subjects. 3. Click the link for the class or component you re using. 4. In the API documentation click the Events link. 5. Locate the event you re interested in and click its link. As shown in Figure 7.9 you should see the specific type of the class that will be dispatched for that event. Handling specific event objects To capture information that s available only in one of the extended event classes declare the datatype of an event handler function s event argument as that class. For example this event handler function expects an instance of MouseEvent 221 Part I Flex Fundamentals private function clickHandler event MouseEvent void myLabel.text You clicked was the alt key pressed event.altKey FIGURE 7.9 Documentation for the click event InteractiveObject Propenes Methods I Events Cxarrctes click Pvmt Fvifil nlijfi I TyiM fl ash. evens . NnusrFverrt property MouseL vent type flesh.event .MouseEvent.CLICK I anquaqe Version Arttrrfrrpt .1.0 Rimtknp Versions AIR 1.0 Flash Flayer 9 Dispached when a user presses and releases the main button of foe user s portng device over foe same interactmeCtoject For a did event to occur it must always follow this ser es of events n foe order of occurrence mouseOown event then mousetp. The target object must be Ktenwai for both of these events otherwise the cl ick event does not occur Any number of .

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.