Chapter 1. Introducing Adobe AIR
Listing 1.1. The MXML document for the Flex quick-start
Listing 1.2. The code for the document class for the Flash quick-start
Chapter 2. Applications, windows, and menus
Listing 2.1. Creating a NativeWindow object
Listing 2.2. Opening the new window
Listing 2.3. Adding content to the window
Listing 2.4. Adjusting the scale and alignment of the contents of a new window
Listing 2.5. Creating a basic window class
Listing 2.6. Creating and opening an instance of ExampleWindow
Listing 2.7. Creating a nonrectangular window
Listing 2.8. Creating a new window using Flex
Listing 2.9. Opening a window is as simple as calling the open() method
Listing 2.10. Creating a simple window component
Listing 2.11. Creating an instance of the window component
Listing 2.12. Creating a transparent window in Flex with systemChrome set to none
Listing 2.13. Setting showFlexChrome to false to hide the Flex window chrome
Listing 2.14. Positioning a new window from the window that instantiates it
Listing 2.15. Positioning a window from within the window component
Listing 2.16. Centering the application on the screen
Listing 2.17. Snapping a window to the edge of the screen
Listing 2.18. You can’t reopen a window that has been closed
Listing 2.19. Allowing a user to hide and show a window
Listing 2.20. Closing windows on application exit
Listing 2.21. Moving utility windows to the front along with the main window
Listing 2.22. Enable dragging on a window using startMove()