Also, you may have to add an event listener to the loader object. I believe
loading a file is an asynchronous call whether the file is local or not...
therefore, it won't necessary be loaded by the very next line of code.


On Thu, Jan 29, 2009 at 6:51 AM, Muzak <[email protected]> wrote:

> use relative path and forward slashes
>
> "img/image.jpg"
>
> ----- Original Message ----- From: "K-Dawg" <[email protected]>
> To: "Flash Coders List" <[email protected]>
> 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
>> [email protected]
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
-jonathan howe
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to