Copy link to clipboard
Copied
I have a flex mobile app with 4 tabs. On one of them I am using the stagewebview. When I first visit the tab it is shows the webview, but then if I go to any of the other tabs it is still there obscurring my other components.
Why is it persisting across the tabs?
Thanks
I figured it out.
this.addEventListener(ViewNavigatorEvent.VIEW_DEACTIVATE,removeWebView);
private function removeWebView(e:Event){
webView.viewPort = null;
webView.dispose();
webView = null;
}
Copy link to clipboard
Copied
I figured it out.
this.addEventListener(ViewNavigatorEvent.VIEW_DEACTIVATE,removeWebView);
private function removeWebView(e:Event){
webView.viewPort = null;
webView.dispose();
webView = null;
}
Copy link to clipboard
Copied
Glad you found the correct solution. Like most 'Stage'* items in AIR mobile, they exist outside the normal display list and thus have to be manually managed.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now