Calendar

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

Tag Cloud

Categories

Archives

Recent Posts

Recent Comments


« HTML Control | Main | Balls – Transparent Apollo Sample – full source code »

FileSystem Components

By Rich Tretola | March 19, 2007
4,282 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=”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:

filesystemcomps.jpg

Topics: Adobe AIR, Tutorials | No Comments »

Comments