Search code examples
androidactionscript-3flash-cs6air-android

How to load a website inside a air for android application (flash)


I need to load my own website in a air for android application (stage WebView) using actionScript(3.0).Is it possible ?

I use following code but isn't work inside my application.

navigateToURL(new URLRequest("http://www.adobe.com"), "_blank");

Solution

  • import flash.display.MovieClip;
    import flash.media.StageWebView;
    import flash.geom.Rectangle;
    
    
    
    var webView: StageWebView = new StageWebView();
    
    
    webView.stage = this.stage;
    webView.viewPort = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);
    webView.loadURL("http://www.adobe.com");