Chapter 13. Introduction to pop-ups
This chapter covers
- Creating a pop-up window
- Sizing and positioning pop-ups
- Communicating with a pop-up window
- Closing pop-up windows
- Using alerts
The previous chapter showed you how to wire the navigation for an application and the different approaches you can use. When you construct an application, your design will likely call for a pop-up or editing window. Flex offers a convenient mechanism in the pop-up manager to help you create, delete, position, close, and destroy windows. When you’re choosing the type of pop-up window to add to your application, it’s a good idea to plan ahead and determine what the purpose of the pop-up will be and what you’ll need to do in the pop-up window. In this chapter we cover the different ways of creating and managing pop-ups as well as simple ways to style them.
Every pop-up window is created and manipulated through the pop-up manager. The PopUpManager class handles the initialization of the window and manages window layering within the application, which relieves you of the responsibility of avoiding placement conflicts. The pop-up manager is simple to use and doesn’t carry many properties to configure. This section covers the creation and destruction of pop-up windows.