Copy link to clipboard
Copied
i was wondering if air 2.6 supports webview for IPhone?
Copy link to clipboard
Copied
Yes:
import flash.geom.Rectangle;
import flash.media.StageWebView;
var webView:StageWebView = new StageWebView();
webView.stage = this.stage;
webView.viewPort = new Rectangle(0,0,stage.stageWidth,stage.stageHeight);
var fPath:String = "http://www.adobe.com/";
webView.loadURL( fPath );
Copy link to clipboard
Copied
Great,
Does it work with local files like if I had an index.html in my folder?
Copy link to clipboard
Copied
It should do, yes. Try using relative path urls.
Copy link to clipboard
Copied
OK thanks will give it a try