Calendar

March 2007
M T W T F S S
« Feb   Apr »
 1234
567891011
12131415161718
19202122232425
262728293031  

Tag Cloud

Categories

Archives

Highest Rated

Most Viewed

Recent Posts

Recent Comments


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

FileSystem Components

By Rich Tretola | March 19, 2007Print This Post Print This Post
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
736 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. <?xml version=”1.0″ encoding=”utf-8″?>
  2. <mx:ApolloApplication xmlns:mx=”http://www.adobe.com/2006/mxml”
  3. layout=”absolute”>
  4. <mx:Script>
  5. <![CDATA[
  6. import flash.filesystem.*;
  7. ]]>
  8. </mx:Script>
  9. <mx:FileSystemDataGrid width=”555height=”154″ x=”6″ y=”7
  10. directory=”{File.desktopDirectory.resolve()}” />
  11. <mx:FileSystemComboBox x=”10″ y=”169
  12. directory=”{File.desktopDirectory.resolve()}”/>
  13. <mx:FileSystemTree x=”10″ y=”199width=”291
  14. directory=”{File.desktopDirectory.resolve()}”/>
  15. <mx:FileSystemList x=”309″ y=”169
  16. directory=”{File.desktopDirectory.resolve()}”/>
  17. </mx:ApolloApplication>

Here is the result:

filesystemcomps.jpg

Share/Save/Bookmark

Topics: Adobe AIR, Tutorials |

Comments