>The problem is transitioning from a Flex View to another View that displays >the StageWebView object using the Slide Transition. It doesn't work that well. >So what I'm trying to accomplish is to replace the StageWebView object on the >transitioning to View with a bitmap BEFORE the transition starts, >so that the transition captures the bitmap and tweens that in the transition. I agree, this is the way to go.
>it's just during the transition it's not working I don't get you. If the bitmap has been captured BEFORE the transition, why would you need to capture the bitmap DURING the transition. Maybe this is what is happening: The transitions on mobile views will usually wait until the destination view is complete, before doing the transition, so that the transition is smooth. In your case, the destination view (with the view) should capture the webview bitmap during the construction and before the transition. But since it's not visible yet, captureBitmap may not work. I know that captureBitmap works for StageText even when the ST is not visible/ not on stage, but that maybe not true for StageWebView. Can you check the scenario above ? I will do it on my side as well when I have some spare time ... Maurice -----Message d'origine----- De : leejk [mailto:[email protected]] Envoyé : mardi 11 mars 2014 20:16 À : [email protected] Objet : RE: Advice Needed With StageWebView & Transitions Yes, I'm not disputing that. I think my problem has been misunderstood. The problem is transitioning from a Flex View to another View that displays the StageWebView object using the Slide Transition. It doesn't work that well. So what I'm trying to accomplish is to replace the StageWebView object on the transitioning to View with a bitmap BEFORE the transition starts, so that the transition captures the bitmap and tweens that in the transition. Then when the transition ends put the StageWebView object back onto the stage. I can capture the StageWebView viewport outside of the transition just fine using the below code... it's just during the transition it's not working. var bitmapData:BitmapData = new BitmapData(_stageWebView.viewPort.width, _stageWebView.viewPort.height); _stageWebView.drawViewPortToBitmapData(bitmapData); _stageWebViewBitmap = new Bitmap(bitmapData); addChild(_stageWebViewBitmap); _stageWebView.stage = null; -- View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Advice-Needed-With-StageWebView-Transitions-tp5373p5399.html Sent from the Apache Flex Users mailing list archive at Nabble.com.
