I have a problem using flex and mobile application...
I have an image with path = "/mnt/sdcard/images/20120202172020990.jpg"
Simply using
<s:Image id="image" source="/mnt/sdcard/images/20120202172020990.jpg" />
Get me an empty image on device, still using it on computer (desktop build / debug) it works fine...
I have enabled every kind of permission in the app.xml
Why I got this error?
I actually solved the problem using:
image.source = File.desktopDirectory.resolvePath(file_name).url;
using instead this one it will work only under windows...
image.source = File.desktopDirectory.resolvePath(file_name).nativePath;
I don't know if it's a bug or whatelse, but I think that the source property of Image passing a filename that start with / (/ is root for unix based OS, android, linux, ios, etc), will take is as a relative path instead of complete path...
North America
Europe, Middle East and Africa
Asia Pacific