3 Replies Latest reply on Aug 2, 2011 7:19 AM by Rangora

    Load Image at runtime on mobile Device


      Hey everyone,


      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");
                          trace("file found");
                      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...


      Any ideas?