A.1. The Original Flex Application

First let's examine the existing Flex application. This application is a very simple mash-up using the Yahoo Weather API (AstraWebAPIs.swc) to populate local weather conditions. On first run, the application switches to the Preferences view (Edit.mxml), where the local zip code is collected as well as the automatic refresh rate. These values are stored in a shared object for persistence between visits. The Results.mxml view displays the Yahoo weather details and also links to the full forecast by utilizing URLRequest class. Finally, the Flip effect class within Alex Uhlmann's distortion effect (DistortionEffects.swc) classes handles the transition between the Results.mxml and Edit.mxml views. Figures A-1 and A-2 show the Results and Preferences views, respectively.

Figure A-1. The original Flex application Results view.
Figure A-2. The Preferences view of the original Flex application.

Get Beginning Adobe® AIR™: Building Applications for the Adobe Integrated Runtime now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.