Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

stagewebview is persisting across tabs flex mobile

Explorer ,
Jun 10, 2012 Jun 10, 2012

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

TOPICS
Development
627
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Jun 10, 2012 Jun 10, 2012

I figured it out.

this.addEventListener(ViewNavigatorEvent.VIEW_DEACTIVATE,removeWebView);

private function removeWebView(e:Event){

                webView.viewPort = null;

                webView.dispose();

                webView = null;

            }

Translate
Explorer ,
Jun 10, 2012 Jun 10, 2012

I figured it out.

this.addEventListener(ViewNavigatorEvent.VIEW_DEACTIVATE,removeWebView);

private function removeWebView(e:Event){

                webView.viewPort = null;

                webView.dispose();

                webView = null;

            }

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 11, 2012 Jun 11, 2012
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines