Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8492491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:43:55+00:00 2026-06-10T22:43:55+00:00

I am using as3 air and testing on an android. I need to able

  • 0

I am using as3 air and testing on an android.

I need to able to load, thru a browse feature, the sd card
OR
I need to point directly to that file folder thru a path.

I have successfully downloaded a zip file from a server. I can unzip it while testing on
my desktop because I can browse to the correct path on desktop but not on phone. But I don’t need the browse feature anyway, right now. I just need to be able to point to the applicationStorgeDirectory and the file in there. 🙂

I need the file var 🙂

var reader:ZipFileReader = new ZipFileReader();
    reader.open(file); /// Help :)

UPDATE Sept 4th 2012 5pm


I tried this code:

var file:File = File.applicationStorageDirectory.resolvePath("myFile.zip");
trace(file.url); //path to the file
//assuming that function takes a string path
reader.open(file.url);

and I got this error:

Scene 1, Layer 'Layer 1', Frame 1, Line 46
1067: Implicit coercion of a value of type String
to an unrelated type flash.filesystem:File.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T22:43:57+00:00Added an answer on June 10, 2026 at 10:43 pm

    This should give you a url to an existing file

    File url

    You could try something like this:

    var file:File = File.applicationStorageDirectory.resolvePath("myFile.zip");
    trace(file.url); //path to the file
    //assuming that function takes a string path
    reader.open(file.url);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple game that I am building in as3/air using flash develop,
I have an iOS app that's using AS3 and AIR. I have external swfs
Using AS3 Air for Android, What code can I use to list all or
50 RANDOM QUOTES Looking to create an AS3 air for android app that loops
My Flash (AS3/AIR) application is currently using a slightly unusual architecture (for a Flash
Is it possible to create a program using AS3 that would allow the user
I have create a custom contextMenu using AS3 and can apply that to the
I've created a linechart in flex using pure as3. I need now to convert
How do I load library objects by string list using Flash and AS3? I
It is my first time using AS3. The way that is set up us

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.