Chapter 14. The File System Components

As we have already seen in Chapter 8, AIR has full access to the operating system's file system. AIR has provided five components that have been specifically created to help make navigating the file system easier. This Chapter will demonstrate how to use each of these components. This Chapter covers each of the following components: FileSystemComboBox, FileSystemDataGrid, FileSystemList, FileSystemTree, and FileSystemHistoryButton. Each component will be added to a single application sample and will be tied together when appropriate. The full source code for the Chapter14_Comps.mxml file is shown in Listing 14-7.

To get started, create a new AIR project within Flex Builder 3 named Chapter14_Comps. This will create our application file with the name Chapter14_Comps.mxml as shown in Listing 14-1.

Example 14-1. The newly created Chapter4_Comps.mxml file
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="absolute" width="650" height="550">

</mx:WindowedApplication>

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.