Skip to Content
Beginning Adobe® AIR™: Building Applications for the Adobe Integrated Runtime
book

Beginning Adobe® AIR™: Building Applications for the Adobe Integrated Runtime

by Rich Tretola
April 2008
Beginner
350 pages
8h 21m
English
Wrox
Content preview from Beginning Adobe® AIR™: Building Applications for the Adobe Integrated Runtime

14.3. FileSystemList

The FileSystemList is very similar to the FileSystemDataGrid and shares many of the same properties. To add a FileSystemList, simply include <mx:FileSystemList id="fsl" x="24" y="299"/> within the Chapter14_Comps.mxmml file. Since this example did not include a directory property, this will create a FileSystemList that starts at the root directory of your system's hard drive. See Figure 14-5.

To use this component, you will simply double-click on any directories in the current view to navigate into the directory tree. Thus you can navigate into the file system, but it is currently a one-way street. In the FileSystemDataGrid example, we used FileSystemHistoryButton to navigate back and forward through the history of the FileSystemDataGrid control.

Figure 14-5. Example showing the addition of a FileSystemList component.

In this example, we will use simple buttons to add back, forward, down, and up navigation to the FileSystemList. The Back and Forward buttons will use the navigateBack() and navigateForward() methods as we have seen previously; however, the Down and Up buttons will use the navigateDown() and navigateUp() methods. So what is the difference? Well, navigateBack() will go back though the history of clicks that occurred when navigating the FileSystemList, which may or may not go up the directory tree. The navigateUp() method will simply move the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Adobe Flex 2: Training from the Source

Adobe Flex 2: Training from the Source

Jeff Tapper, James Talbot, Matt Boles, Ben Elmore, Mike Labriola
Flash Out of the Box

Flash Out of the Box

Robert Hoekman Jr.
JavaFX™: Developing Rich Internet Applications

JavaFX™: Developing Rich Internet Applications

Jim Clarke, Jim Connors, Eric Bruno

Publisher Resources

ISBN: 9780470229040Purchase book