Link to home
Start Free TrialLog in
Avatar of skibama1
skibama1

asked on

Flex ImageSnapshot Dynamically Updating Datagrid

I'm using ImageSnapshot to capture a datagrid and convert it to a JPG. However, when I update the datagrid with new data, the snapshot doesn't update. I'm thinking it has something to do with the initializing of the variable when the function is called.;

private function callVBS(gradeGridSource:IBitmapDrawable):void {

var imageSnapGrid:ImageSnapshot = ImageSnapshot.captureImage(gradeGridSource);
var imageByteArrayGrid:ByteArray = imageSnapGrid.data as ByteArray;

}
ASKER CERTIFIED SOLUTION
Avatar of dgofman
dgofman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of skibama1
skibama1

ASKER

The problem turned out to be something else, but your sugesstion worked also. In addition, I referenced the component itself without passing it to the function and this worked too. Thanks!!!