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

Embedded google maps but when finished the view does not dissapear

Guest
Oct 17, 2015 Oct 17, 2015

I am making an app for android and I have imported a google maps location into the app but the problem is that when I press the back button it takes me back to my home page as it should but it does not remove the embedded google maps. Please could someone give me the action script code or some kind of method so that after using the google maps I can go back without it staying there. Thanks in advanced for any help it is much appreciated .

The action script I have used is:

import flash.media.StageWebView;

button_back_maphome.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_maphome);

function fl_ClickToGoToAndStopAtFrame_maphome(event:MouseEvent):void

{

    webView.dispose();

    gotoAndStop(1);

}

var webView:StageWebView = new StageWebView();

webView.viewPort = new Rectangle( 0, 300, this.stage.stageWidth, this.stage.stageHeight-300);

webView.stage = this.stage;

webView.loadURL("I inserted my google maps tag here");

TOPICS
ActionScript
464
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

Enthusiast , Oct 18, 2015 Oct 18, 2015

Try:

webView.stage = null;

webView.viewPort = null;

webView.dispose();

Translate
Enthusiast ,
Oct 18, 2015 Oct 18, 2015

Try:

webView.stage = null;

webView.viewPort = null;

webView.dispose();

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
Guest
Oct 18, 2015 Oct 18, 2015

Thanks heaps man it works perfect now

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
Enthusiast ,
Oct 18, 2015 Oct 18, 2015
LATEST

You're welcome my friend

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