var rect1:Rectangle = object1.getBounds(object1); bmpd1.draw(object1, rect.width, rect.height, true, 0);