# Loader problem

**URL:** <https://forum.kirupa.com/t/loader-problem/272294>\
**Category:** Uncategorized\
**Created:** [October 3, 2008, 4:31pm UTC](https://forum.kirupa.com/t/loader-problem/272294 "2008-10-03T16:31:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![webmaster4u](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/webmaster4u/32/3478_2.png) [@webmaster4u](https://forum.kirupa.com/u/webmaster4u)\
**Post date:** [October 3, 2008, 4:31pm UTC](https://forum.kirupa.com/t/loader-problem/272294/1 "2008-10-03T16:31:17Z")

</div>

I am trying to load an external image into flash after uploading it using file reference. Everything works fine, the image uploads to the server and I ahve the url of where it’s stored.

However, when I try to load it back into flash with this code it doesn’t work, and I’m baffled. Any idea why?

```auto
			// download pic to flash
			function picUploadDone(e:Event):void {
				var urlRequest : URLRequest = new URLRequest(siteUrl + 'wp-content/cards/user_pic_uploads/' + picFileName);
				var myLoader:URLLoader = new URLLoader;
				myLoader.addEventListener(Event.COMPLETE, getUserPicDone);
				myLoader.load(urlRequest);
				
				// resize pic and add to box
				function getUserPicDone(e:Event):void {
					//trace(e.target.data);
					trace(e.target.data);
				}		
				
				
			}

```
