Skip to main content
Participant
March 10, 2011
Answered

How do I share resources between two Android Air Applications

  • March 10, 2011
  • 2 replies
  • 901 views

I have two air applications installed on Android 2.2. What I want to do is load App2.swf into a movieclip in App1.swf.

Is this possible?

If I include App2.swf in the APK all works fine. But what I want to do is either load it from a second application folder or from /sdcard/dropbox/App2.swf

My load command var mRequest:URLRequest = new URLRequest("file://sdcard/dropbox/App2.swf"); // But it doesn't work !!!

This topic has been closed for replies.
Correct answer banzai76_

Try loading a text file instead of a swf and see if that works? That will tell you if you have the correct path or not.

The swf may not work because of security issues. Attach some error event handlers and see what they say - do you get a security error or a file-not-found error?

I've never tried loading off the SD card, but some useful paths to use are here:

http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118666ade46-7fe4.html#WS5b3ccc516d4fbf351e63e3d118676a4c56-7fc6

Nick

2 replies

an5onAuthor
Participant
March 11, 2011

Hi

Thanks.

Followed the link and I saw file sould have three slashes.

mRequest:URLRequest = new URLRequest("file:///sdcard/dropbox/App2.swf")

banzai76_Correct answer
Inspiring
March 10, 2011

Try loading a text file instead of a swf and see if that works? That will tell you if you have the correct path or not.

The swf may not work because of security issues. Attach some error event handlers and see what they say - do you get a security error or a file-not-found error?

I've never tried loading off the SD card, but some useful paths to use are here:

http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118666ade46-7fe4.html#WS5b3ccc516d4fbf351e63e3d118676a4c56-7fc6

Nick