Of course, I will post needed code, I just thought this will be easy one =)
So, this is the function:
ActionScript Code:
private function getBitmapData(target:UIComponent):BitmapData{
var bd:BitmapData = new BitmapData(target.width, target.height);
var m:Matrix = new Matrix();
bd.draw(target, m);
return bd;
}
@bowljoman:
In my case it could be something involved with validateNow()... I am working with
FlexBook component and I'm not sure how to 'override' some of their methods of validating etc...
I also don't understand if tempHolder (which is Canvas) displays what I want (my component) and I try to get a copy of that and display it somewhere else it won't cooperate =)
Thanks for your help!!