Chapter 2. Applications, windows, and menus

 

This chapter covers

  • Creating new windows
  • Managing open windows
  • Running application-level commands
  • Adding system-level menus to applications

In chapter 1, you learned a lot of important foundational information that should provide context for understanding what AIR is and the general process for building and deploying AIR applications. Now we’re ready to start looking at all the details of building AIR applications. We’re going to start from the ground up. In this chapter, we’ll cover the following:

  • Applications— The first thing we’ll look at is how to work with and understand an AIR application programmatically. In the first part of this chapter, you’ll learn everything you need to know about programmatically creating AIR applications.
  • Windows— Every AIR application, no matter how simple or complex, contains at least one window, and many contain more than one. Windows are fundamental but fairly sophisticated at the same time. AIR gives you a lot of control over windows, including window style, shape, behavior, and more. All of these topics are covered in this chapter.
  • Menus— AIR applications allow you to create a variety of different types of menus, including system menus, application menus, context menus, and icon menus. We’ll talk about all these types of menus in this chapter.

2.1. Understanding applications and windows

2.2. Managing windows

2.3. Managing applications

2.4. Menus

2.5. Starting the AirTube application

2.6. Summary