« HTML Control | Main | Balls – Transparent Apollo Sample – full source code »
FileSystem Components
By Rich Tretola | March 19, 2007
3,983 views
The FileSystem components are a new set of components specific to Apollo 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
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?xml version=â€1.0″ encoding=â€utf-8″?>
<mx:ApolloApplication xmlns:mx=â€http://www.adobe.com/2006/mxmlâ€
layout=â€absoluteâ€>
<mx:Script>
<![CDATA[
import flash.filesystem.*;
]]>
</mx:Script>
<mx:FileSystemDataGrid width=â€555″ height=â€154″ x=â€6″ y=â€7″
directory=â€{File.desktopDirectory.resolve(â€)}†/>
<mx:FileSystemComboBox x=â€10″ y=â€169″
directory=â€{File.desktopDirectory.resolve(â€)}â€/>
<mx:FileSystemTree x=â€10″ y=â€199″ width=â€291″
directory=â€{File.desktopDirectory.resolve(â€)}â€/>
<mx:FileSystemList x=â€309″ y=â€169″
directory=â€{File.desktopDirectory.resolve(â€)}â€/>
</mx:ApolloApplication>
<mx:ApolloApplication xmlns:mx=â€http://www.adobe.com/2006/mxmlâ€
layout=â€absoluteâ€>
<mx:Script>
<![CDATA[
import flash.filesystem.*;
]]>
</mx:Script>
<mx:FileSystemDataGrid width=â€555″ height=â€154″ x=â€6″ y=â€7″
directory=â€{File.desktopDirectory.resolve(â€)}†/>
<mx:FileSystemComboBox x=â€10″ y=â€169″
directory=â€{File.desktopDirectory.resolve(â€)}â€/>
<mx:FileSystemTree x=â€10″ y=â€199″ width=â€291″
directory=â€{File.desktopDirectory.resolve(â€)}â€/>
<mx:FileSystemList x=â€309″ y=â€169″
directory=â€{File.desktopDirectory.resolve(â€)}â€/>
</mx:ApolloApplication>
Here is the result:

Topics: Adobe AIR, Tutorials | No Comments »


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



