Load image into specific dimensions?

How do I enable an image to be loaded from a server into specific dimensions at runtime?

This is what I’ve got, but it’s just loading it in the top right corner.


	uploadDisplay.load(new URLRequest(newURLString));
	uploadDisplay.contentLoaderInfo.addEventListener(Event.COMPLETE, contentComplete);
}

function contentComplete(event:Event):void{
	trace (uploadDisplay.content);
	test_txt.appendText(" in contentComplete: " + uploadDisplay.width);
	

	var w:Number = uploadDisplay.width;
	var h:Number = uploadDisplay.height;
	var bitmapDataA:BitmapData = new BitmapData(w/1, w/1);
	
	bitmapDataA.draw(uploadDisplay, new Matrix(), null, null, new Rectangle(0,0,w/1,w/1));
	var bitmapA:Bitmap = new Bitmap(bitmapDataA);
	addChild(bitmapA);
}