Search

 

March 2007
S M T W T F S
« Feb   Apr »
 123
45678910
11121314151617
18192021222324
25262728293031

Tags

Archives


« | Main | »

FileSystem Components

By Rich Tretola | March 19, 2007
10,344 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
<?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=”555height=”154″ x=”6″ y=”7
directory=”{File.desktopDirectory.resolve()}/>
<mx:FileSystemComboBox x=”10″ y=”169
directory=”{File.desktopDirectory.resolve()}/>
<mx:FileSystemTree x=”10″ y=”199width=”291
directory=”{File.desktopDirectory.resolve()}/>
<mx:FileSystemList x=”309″ y=”169
directory=”{File.desktopDirectory.resolve()}/>
</mx:ApolloApplication>

Here is the result:

filesystemcomps.jpg

Topics: Adobe AIR, Tutorials | No Comments »

Comments