As I'm answering my own questions here, I guess I'll just posted my findings :)
There appears to be something a little strange with the way it handles the URL on a Mac. By adding 'file:/' in front of the url in new URLRequest (e.g. var request:URLRequest = new URLRequest( 'file:/' + url ); ) it works correctly. I'm using the image.source for loading the image ( image.source = url in this example ), but that does not appear to be correct on a mac. Don't know if this is a bug or a 'user-error' :) --- In flexcoders@yahoogroups.com, "lampei" <lam...@...> wrote: > > And pointing directly to a URL (http://...) works correctly also, so > it's definitely something weird with the file location, but I'm not > sure what. > > --- In flexcoders@yahoogroups.com, "lampei" <lampei@> wrote: > > > > OK, I've got an update that may help someone troubleshoot what's going > > on here. I installed FB3 on my wife's Mac and ran the debugger. The > > error that is returned is > > > > Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found. > > > > I've tried changing the url to file:/location of file, I've tried > > moving the file to the desktop, but neither worked. I read about > > using the security policies (as that may be causing an issue), but I'm > > not sure exactly how to get started with that. Any ideas? > > > > --- In flexcoders@yahoogroups.com, "lampei" <lampei@> wrote: > > > > > > I wrote an AIR application on my PC that will take images that are > > > dragged 'n' dropped into it, resize them, then upload those images to > > > a server. On my PC, everything worked great so I exported a release > > > build and set it up as a .air application and installed it on my > > > wife's Mac Mini. However, once I tried to drag and drop the images, > > > it never loads up the images. I set up a few alerts to determine > > > where the issue was (I wasn't sure how to debug an AIR application > > > that had been deployed) and found that it got to this portion of the > > > code before stopping: > > > > > > private function loadImage(url:String):void { > > > var request:URLRequest = new URLRequest(url); > > > var imageLoader:Loader = new Loader(); > > > > > > imageLoader.contentLoaderInfo.addEventListener( Event.COMPLETE, > > > imageLoaded ); > > > imageLoader.load( request ) > > > } > > > > > > The url variable = /Volumes/PUBLIC/My Media/My > > > Picures/2009_01_09/IMG_2873.JPG > > > > > > There is a valid file at that location, but if I go to a terminal > > > window (on the Mac) and do open "/Volumes/PUBLIC/My Media/My > > > Picures/2009_01_09/IMG_2873.JPG" then it opens correctly, without > > > quotes it doesn't (due to the spaces, I guess). I'm guessing this > > > shouldn't be an issue in the loadImage method as it's a variable. Am > > > I missing something else here? Or is there a trick I don't know about > > > using the Loader class on a Mac? > > > > > > Thanks. > > > > > >