AIR: URLRequest works on Windows but not on Mac
Published on July 18th, 2009 by DannyT. Filed under FlexIf you find that URLRequest works on Windows but not on Mac then simply prepend file:// to your url string. This will then work on both Windows and Mac.
var myFilePath:String = “someFile.xml”;
var request:URLRequest = new URLRequest(“file://” + myFilePath);
Rob
October 30th, 2009 at 5:36 am
Brilliant! Fixed my problem exactly. (source worked on mac but not windows)
Rob
October 30th, 2009 at 5:37 am
oops – that’s worked on windows but not mac
Nestor
March 4th, 2010 at 4:16 pm
One thing to keep in mind is that macs use “/” and windows use “\”