I have a canvas in my layout and the application allows dragging and
dropping items into the canvas. I need to be able to grab a bitmap of
the canvas when the user is finished, so I can display the drawing on
another panel, and in the FlexPrintJob function.
I've tried using this code, initiated from a button:
private function myDrawing():void{
var myBitmapData:BitmapData = new BitmapData(530, 445);
myBitmapData.draw(myWorkspace1);
var bmp:Bitmap = new Bitmap(myBitmapData);
showDrawing.addChild(bmp); //this isn't working
}
myWorkspace1 is the ID of the canvas where everything is dropped.
I have a canvas with the ID=showDrawing that I'd like the bitmap to
appear in.
Anyone know what I need to add to the above function to get that done?
Dave