use relative path and forward slashes

"img/image.jpg"

----- Original Message ----- From: "K-Dawg" <kdaw...@gmail.com>
To: "Flash Coders List" <flashcoders@chattyfig.figleaf.com>
Sent: Thursday, January 29, 2009 1:12 AM
Subject: [Flashcoders] Loading image on local filesystem


The AS is in a dir1 (dir1\stuff.as) and the images are in
dir1\img\image.jpg.

           imagePath = new URLRequest(this.imagePathString);
           loader = new Loader();
           trace(loader.load(imagePath));

this.imagePathString is a relative path to the image (img\image.jpg).

How can I load these from a local filesystem?  This will be moved to a web
server but for testing I am running on windows and Flash CS3 in Windows XP
as a vm on my laptop in VMWare.

Thanks for any help.

Kevin
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to