PDA

View Full Version : URL problem



LuckyConnolly
05-11-2010, 10:48 PM
I am trying to create a portfolio using flash and I run into this problem with my action script:

var thumbLoader:Loader = new Loader();
thumbLoader.load(new URLRequest ("C:\Users\Owner\Desktop\flash\images\thumbs\characterThumb.jpg"));
thumbLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbLoaded);
function thumbLoaded(event:Event):void {
allThumbs.addChild(thumbLoader);
}

and it outputs this:
Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

any ideas on why it won't load an image from my folder where all the files for the project are stored?

kostas_par
06-02-2010, 12:26 AM
The problem is your destination C:\Users\Owner\Desktop\flash\images\thumbs\characterThumb.jpg

If your imgage in the same folder with your flash then right onlys images\thumbs\characterThumb.jpg