Skip navigation
suxik
Currently Being Moderated

AS3 AIR accessing Android expansion file

Dec 6, 2012 1:36 PM

Tags: #air #storage #as3 #android #expansion

Hello, I have AS3/AIR application for deploying on Google Play. The app has an expansion file attached to it. Expansion file is named "main.1000000.air.com.mycompany.myapp12.obb" and it is downloaded along with the app properly.

The problem is I cannot access the file with any way I tried, like:

 

File.applicationStorageDirectory.resolvePath('Android/obb/main.1000000.air.com.mycompany.myapp12.obb');

File.applicationStorageDirectory.resolvePath('/Android/obb/main.1000000.air.com.mycompany.myapp12.obb');

File.applicationStorageDirectory.resolvePath('main.1000000.air.com.mycompany.myapp12.obb');

File.applicationStorageDirectory.resolvePath('/main.1000000.air.com.mycompany.myapp12.obb');


or simillar, and I cannot access the file even when the path while developing on Windows seems to be right. When deployed, I just got the "not found" error in my catch block with the supplied File url property: "app-storage:/Android/obb/main.1000000.air.com.mycompany.myapp12.obb" . I have been looking for the solution and trying various approaches for several days, but I am stucked. Please help. Developed on ASUS EEE PAD.

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points