I’m trying to load images from discogs.com
but there are strange errors
These 2 urls are giving errors…
http://www.discogs.com/image/R-150-28301-1198848470.jpeg
http://www.discogs.com/image/L-150-283-001.jpg
ActionScript Code:
//var imageURLRequest:URLRequest = new URLRequest("http://www.discogs.com/image/R-150-28301-1198848470.jpeg");
var imageURLRequest:URLRequest = new URLRequest("http://www.discogs.com/image/L-150-283-001.jpg");
var myImageLoader:Loader = new Loader();
myImageLoader.load(imageURLRequest);
myImageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
function imageLoaded(e:Event):void {
var myBitmapData:BitmapData = new BitmapData(myImageLoader.width, myImageLoader.height);
myBitmapData.draw(myImageLoader);
var myBitmap:Bitmap = new Bitmap;
myBitmap.bitmapData = myBitmapData;
addChild(myBitmap);
}
is this because I can’t read from that server ?? I can open the images in the browser…
