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

Reply via email to