Flash
  Home arrow Flash arrow Page 3 - Using the File System API
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
FLASH

Using the File System API
By: O'Reilly Media
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2008-03-13

    Table of Contents:
  • Using the File System API
  • Accessing Files and Directories
  • URI Schemes
  • Asynchronous and Synchronous Versions of Methods

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Using the File System API - URI Schemes


    (Page 3 of 4 )

    A URI scheme is specified at the beginning of a URL, such as file in the following example:

      file:///c:/ApolloTest/test.txt

    In addition to thefileURI scheme, Apollo supports the new URI schemesapp-storageand
    app-resource.

    app-storage

    Identifies the application storage directory, as shown in the following example:

      var logFile:File = File.appStorageDirectory;
      logFile = logFile.resolve("log.txt");
      trace(logFile.url); // app-storage:/log.txt

    app-resource

    Identifies this application’s installation folder, as in the following:

      var installDir:File = new File();
      installDir.url = "app-resource:/";
      installDir = installDir.resolve("HelloWorld-app.xml");
      trace(installDir.url); // app-resource:/HelloWorld-app.xml

    file

    The url property of otherFileobject returns a standardfileURL scheme:

      var file:File = File.documentsDirectory;
      file = file.resolve("ApolloTest/test.txt");
      trace(file.url);
        // On Windows:
       
    // file:///C:/Documents%20and %20Settings/ ... /test.txt
       
    // On Mac OS:
       
    // file:///Users/userName/Documents/ ... /test.txt

    More Flash Articles
    More By O'Reilly Media


       · This article is an excerpt from the book "Apollo for Adobe Flex Developer's Pocket...
     

    Buy this book now. This article is excerpted from chapter four of the book Apollo for Adobe Flex Developer's Pocket Guide, written by Mike Chambers, Rob Dixon and Jeff Swartz (O'Reilly, 2007; ISBN: 0596513917). Check it out today at your favorite bookstore. Buy this book now.

    FLASH ARTICLES

    - Critical Flash Vulnerability Heats Up the Web
    - More on Nonpersistent Client-Side Remote Sha...
    - Nonpersistent Client-Side Remote Shared Obje...
    - Using the Decorator Pattern for a Real Web S...
    - Using Concrete Decorator Classes
    - Delving More Deeply into the Decorator Patte...
    - The Decorator Pattern in Action
    - A Simple Decorator Pattern Example
    - Decorator Pattern
    - Organizing Frames and Layers for Flash Anima...
    - Organizing Frames and Layers
    - Using XML and ActionScript with Flex Applica...
    - Interfaces and Events with ActionScript and ...
    - Manipulating Data with ActionScript in Flex ...
    - ActionScript Syntax for Flex Applications







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek