tailieunhanh - Flash Builder 4 and Flex 4 Bible- P12

Flash Builder 4 and Flex 4 Bible- P12: 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 17 Working with Pop-up Windows Working with Custom Pop-up Windows You can create custom pop-up windows in a Flex application for many purposes Presenting detailed information to the user that s too complex to easily fit into an Alert dialog box Collecting configuration and preference information before executing an operation Providing a pop-up window that can be reused as a custom component Collecting data through a data entry form wrapped in a pop-up window Tip A custom pop-up window component must be extended from a class that implements the IFlexDisplay Object interface. This interface is implemented by the UIComponent class which in turn is in the inheritance hierarchy of all MX containers and controls. This essentially means that any component can be used as a custom pop-up window. If you want to create a custom pop-up window based on a Spark component though you should base your custom pop-up window on the Spark TitleWindow component. Defining a custom pop-up window Custom pop-up windows can be defined as custom MXML components. If you want to create a window that looks like a dialog box you can use either the Panel or TitleWindow container. While either component has the appearance of a dialog box the Spark Panel component can t be dragged around the screen by the user. If you want full dialog box functionality create your custom pop-up window components as subclasses of the TitleWindow component. Creating the component The steps for creating an MXML component that will be used as a pop-up window are the same as for any other MXML component 1. Create a new MXML component based on . 2. Save the new component in your project as a file with the .mxml file extension. The following code defines an MXML component designed to collect login information and it might be saved as a file named xml version encoding utf-8 s TitleWindow xmlns fx http mxml 2009 xmlns s library flex spark .

TÀI LIỆU MỚI ĐĂNG
5    163    1    26-11-2024