What's the error? No image appearing? (You haven't used addChild() anywhere.)
imageLoaded() never getting called? (Probably a red herring, but you really should add the listener _before_ you call load()). Give us some more info, then we might be able to help. Ian On Thu, Jan 29, 2009 at 1:30 PM, K-Dawg <[email protected]> wrote: > 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 > _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

