SunQuest
 
       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  
Dedicated Servers  
Actuate Whitepapers 
Moblin 
IBM® developerWorks 
Sun Developer Network 
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 / 1
    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

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    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

    - Using XML and ActionScript with Flex Applica...
    - Interfaces and Events with ActionScript and ...
    - Manipulating Data with ActionScript in Flex ...
    - ActionScript Syntax for Flex Applications
    - ActionScript in Flex Applications
    - A Closer Look at Apollo`s File System API
    - Using the File System API
    - ActionScript 101
    - Flash Buttons
    - Advanced Flash Animation
    - Creating Your First Animated Movie with Flas...
    - Flash: Building Blocks
    - Building Preloaders
    - Fun Things to Do with Movie Clips in Flash MX
    - Referencing Movie Clips in Flash MX






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway