Capturing a Screenshot
You can capture the web view to bitmap data by calling the
drawViewPortToBitmapData() function and providing a correctly sized BitmapData object.
This process is asynchronous so the bitmap data will be updated after the capture is complete. If you need to know when the process is complete you can either listen for the
NativeWebViewEvent.DRAWVIEWPORT_COMPLETE event or pass a callback function.
Using the event listener:
Using the callback function: