Calendar

February 2008
M T W T F S S
« Jan   Mar »
 123
45678910
11121314151617
18192021222324
2526272829  

Tag Cloud

Categories

Archives

Highest Rated

Most Viewed

Recent Posts

Recent Comments


« Write your first file to the file system using AIR | Main | File and FileStream within AIR »

AIR FileSystem Components

By Rich Tretola | February 25, 2008Print This Post Print This Post
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
574 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. <?xml version="1.0" encoding="utf-8"?>
  2. <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
  3.     layout="absolute" width="568" height="375">
  4.     <mx:FileSystemDataGrid width="555" height="154" x="6" y="7"
  5.     directory="{File.desktopDirectory.resolvePath('')}" />
  6.     <mx:FileSystemComboBox x="10" y="169"
  7.     directory="{File.desktopDirectory.resolvePath('')}"/>
  8.     <mx:FileSystemTree x="10" y="199" width="291"
  9.     directory="{File.desktopDirectory.resolvePath('')}"/>
  10.     <mx:FileSystemList x="309" y="169"
  11.     directory="{File.desktopDirectory.resolvePath('')}"/>
  12. </mx:WindowedApplication>

Here is the result:

airfilesystemcomps.jpg

Share/Save/Bookmark

Topics: Adobe AIR |

Comments