Viraj Tharinda
Viraj Tharinda

Reputation: 29

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");

Upvotes: -1

Views: 1282

Answers (1)

kare
kare

Reputation: 147

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");

Upvotes: 1

Related Questions