Bitmapdata.draw on Loader

            
var l=new Loader();
l.load(new URLRequest("test.jpg"));
var b = new BitmapData(400,300);
b.draw(l);

When I do addChild(l) it shows the image, so that is working properly.

What’s wrong with this? The BitmapData keeps coming back as all-white.