Are you sure this is not a "security" error due to the allow network / allow local setting? I'm guessing that you may want to allow local file access for the swf (somewhere in publish settings as I remember), or add the img folder on your local drive to flash's "trusted" locations.
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of K-Dawg Sent: 29 January 2009 13:30 To: Flash Coders List Subject: Re: [Flashcoders] Loading image on local filesystem On Thu, Jan 29, 2009 at 6:51 AM, Muzak <[email protected]> wrote: > use relative path and forward slashes > > "img/image.jpg" > > I'm sorry, I mistyped for some reason. The actual string passed into the URLRequest is: img/food_array.jpg the path is relative and does exist exactly as that. I pass it in through the object's constructor and then do: this.imagePath = new URLRequest(this.imagePathString); loader = new Loader(); loader.load(this.imagePath); loader.contentLoaderInfo.addEventListener(Event.INIT, imageLoaded); When I trace(this.imagePathString); it outputs the correct path and trace(this.imagePath) returns the URLRequest. I must be doing something incorrect on the loader.load line maybe? Thanks. Kevin _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ______________________________________________________________________ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. ______________________________________________________________________ _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

