« Write your first file to the file system using AIR | Main | File and FileStream within AIR »
AIR FileSystem Components
By Rich Tretola | February 25, 2008
2,703 views
The FileSystem components are a new set of components specific to AIR which allow for easy access for browsing the file system. The example below defines the 4 files system components and points them to the systems desktop.
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute" width="568" height="375">
<mx:FileSystemDataGrid width="555" height="154" x="6" y="7"
directory="{File.desktopDirectory.resolvePath('')}" />
<mx:FileSystemComboBox x="10" y="169"
directory="{File.desktopDirectory.resolvePath('')}"/>
<mx:FileSystemTree x="10" y="199" width="291"
directory="{File.desktopDirectory.resolvePath('')}"/>
<mx:FileSystemList x="309" y="169"
directory="{File.desktopDirectory.resolvePath('')}"/>
</mx:WindowedApplication>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute" width="568" height="375">
<mx:FileSystemDataGrid width="555" height="154" x="6" y="7"
directory="{File.desktopDirectory.resolvePath('')}" />
<mx:FileSystemComboBox x="10" y="169"
directory="{File.desktopDirectory.resolvePath('')}"/>
<mx:FileSystemTree x="10" y="199" width="291"
directory="{File.desktopDirectory.resolvePath('')}"/>
<mx:FileSystemList x="309" y="169"
directory="{File.desktopDirectory.resolvePath('')}"/>
</mx:WindowedApplication>
Here is the result:

Topics: Adobe AIR | No Comments »


![[image]](http://mowser.com/img?url=http%3A%2F%2Fassets.max.adobe.com%2Fimages%2FMAX09_D125x125.jpg)



