O'Reilly logo

Flash® Builder™ 4 and Flex® 4 Bible by David Gassner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 17. Working with Pop-up Windows

IN THIS CHAPTER

  • Understanding pop-up windows

  • Using the Alert class

  • Using the PopUpMenuButton control

  • Using the PopUpButton control

  • Creating and displaying custom pop-up windows

In applications that are built for windows-style operating systems, such as Microsoft Windows, Mac OS X, and the various windowing interfaces on Linux and other operating systems, pop-up windows are commonly used to get the user's attention, provide information, and collect data. Not all Flex applications have or require pop-up windows, but the're a common interface that users of these operating systems easily recognize and know how to use.

Flex applications are able to present pop-up windows in a variety of forms. Whether you want to display a simple information message or create a more customized user experience, you have these options:

  • The Alert class. This class creates a simple pop-up dialog box displaying simple String values. You can also use the Alert class to enable the user to confirm or cancel an operation before it's executed, and it can include a custom graphical icon.

  • The PopUpMenuButton control. This control displays a two-part Button control that displays a single-level pop-up menu when clicked.

  • The PopUpButton control. This control combines a Button with any other visual component that you want to display when clicked.

  • Custom pop-up windows. These windows can be created with the TitleWindow container and presented and managed with the PopUpManager class.

In this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required