Jump to content
Search Community

XMLLoader problem on Android

jacksun test
Moderator Tag

Recommended Posts

I met a problem when deploy my SWF on Android. The problem is that XMLLoader is not able to load local xml file on sdcard.

 

var path:String = 'file:///sdcard/test/';
queue.append( new ImageLoader(path + "sample.jpg", {name:"photo", container:this, width:250, height:150}) );     // WORKS
queue.append( new XMLLoader(path + "sample.xml", { name:"xmlDoc" } ) );     // NOT WORKING !!!
queue.append( new DataLoader(path + "sample.txt", { name:"txtDoc" } ) );      // NOT WORKING !!!

 

There are no problem if It's loading files from a remote server by changing the path as below.

 

var path:String = 'http://www.example.com/test/';

 

Can anyone help?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...