my code to load an image works on the emulator but not on my android device. Here is a simple example of my problem:
protected function view1_creationCompleteHandler(event:FlexEvent):void
var bmp:BitmapImage=new BitmapImage();
var f:File=new File(File.userDirectory.nativePath+"/samples/marxLogo.png");
else trace("file not found");
On creation complete a image should be loaded and addded to the view. If i run the code with the Flasb Builder emulator everythting is fine but on my mobile device i dont see the image, but "file found" is printed to the command line, so at least there is nothing wrong with the path...
You should use a Loader to load the image... And the use of File.nativePath isnt recommanded on mobile devices cause of security issues.
I tried it with a loader, but the same problem occurs. It works with the emulator but not on the device...
And what should i use instead of File.nativePath?