Looking at the diagram of the View lifecycle posted at the bottom of this
page:
http://help.adobe.com/en_US/flex/mobileapps/WSa122979b4619725672e48c412a3e152164-7fff.html,
shows I should be trying to capture the viewport bitmap data in the complete
handler it looks like to me. In my complete handler I use this code:


private function completeHandler(event:Event):void
{
        dispatchEvent(event.clone());
        trace("complete");
        var videoCoordinates:Point = this.parent.localToGlobal(new Point(this.x,
this.y));
        var bitmapData:BitmapData;

        _stageWebView.viewPort = new Rectangle(0, videoCoordinates.y,
unscaledWidth, unscaledHeight);
        bitmapData = new BitmapData(_stageWebView.viewPort.width,
_stageWebView.viewPort.height);
        _stageWebView.drawViewPortToBitmapData(bitmapData);
        _stageWebViewBitmap = new Bitmap(bitmapData);
        addChild(_stageWebViewBitmap);
        _stageWebView.stage = null;
}

This code works fine when using it to capture a screen grab of the viewport
when I need to display a popup window over the viewport. So far tho all i
get is a blank capture when trying to capture it on the View transition.



--
View this message in context: 
http://apache-flex-users.2333346.n4.nabble.com/Advice-Needed-With-StageWebView-Transitions-tp5373p5383.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to