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?
// 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);
}
}