Normally creating blank BitmapData requires you pass in an the width and height in pixels. But what about when you embed an image with a linkageid? You'll get the above error trying to create a new myEmbeddedImage(); unless you pass it with two numbers, even if they don't mean anything e.g.
var bdata:BitmapData = new imageInLibraryLinkageID(0,0);
I would have thought that these would be optional for embedded assets. Fix originally discovered here.