1 Reply Latest reply on Oct 13, 2008 3:17 PM by Joe ... Ward

    Dynamic images from disk in AIR on Linux

      I have a relatively simple AIR application that pulls image paths from a database and then attempts to display that image by setting the src="" attribute of an <mx:Image /> tag. On my Windows development machine this all works swimmingly, however, when transferring the application to Linux, the images only display as the "broken image" icon, as though they can't be read from disk.

      I've definitely verified that the images are where they're supposed to be, and that the files are not corrupted. I've used .nativePath to avoid problems with the file system differences. To wit, here's the relevant code:

      private var resourceRootPath:String = File.userDirectory.nativePath;


      [Bindable] private var imgPath = resourceRootPath + File.separator + Object.graphic // where Object.graphic is the file name pulled from a DB, as a parameter of an object the app uses repeatedly. It exists as a string that represents the file name, such as "graphic.jpg"

      <mx:Image id="currentSlideDisplay" source="{imgPath}" />

      Does anyone have any idea what I might be doing wrong?

      EDIT: I forgot to mention, this is RedHat Fedora 6 I'm working with.