|Until now, if you wanted to create a desktop application, you needed to use a programming language such as C# and Visual StudioR. Another option was to use a web language such as PHP and have your pseudo desktop application run through a web browser on your desktop. But with the newest release of AdobeR FlashR CS4 and AIRTM, we now have a much easier way to build desktop applications that perform the same across Linus, Mac OSR and WindowsR. This book by Marco Casorio is a good way to learn the basics of working with Flash CS4, ActionScript 3 and AIR together. As you progress through the book, you learn how to build AIR projects, piece by piece, from layout design and creating each part of the application to debugging and publishing. You will need a good foundation of ActionScript 3 and have Flash CS4 and AIR 1.5 installed on your computer. You can download sample files for the book at the authorís companion site flashcs4air.comtaste.com.|
Casorio begins by discussing the new features in Flash CS4 and the AIR SDK. Next, you take a look at a few simple applications, a media player and a weather widget. You also discuss the startup process for building your application including the XML descriptor file, digital certificate and publishing parameters. Moving on, you begin to work with OOP classes that control the main features of your application window and its contents. The supporting examples are a photo gallery and a text editor that uses Flash components.
All applications have menus with commands to perform tasks such as controlling files on your local system. Casorio covers the many types of menus that you might want to add to your application and how to use ActionScript classes to create and program these menus. You also learn how to use the XMLMenu class to generate your custom menu from XML.
Moving on, you learn how to program your application to communicate with your local file system and control files, folders, dialog boxes, the clipboard and the drag and drop function. From here, you advance to the operating system and learn tasks such as launching an application on login or from a webpage, associating file types with your application and programming system alerts for both Windows and Mac. You will also learn about the AIR Webkit engine, the AcrobatR Reader plug-in and how to control multimedia files.
Marco Casorio is an Adobe developer and consultant. He has authored several books on Adobe AIR and Flex.
Join us in the Flash forum.