This variable seems wrong _stageWebView
, should not it be set in the webview?
So:
import flash.geom.Rectangle;
import flash.media.StageWebView;
var webView:StageWebView = new StageWebView();
webView.stage = this.stage;
webView.viewPort = new Rectangle(0,0,stage.fullScreenWidth, stage.fullScreenHeight);
webView.loadURL("http://example.com");
If it still does not work try:
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);
webView.loadURL("http://example.com");
And if it still does not seem to work, make sure the site you're using uses this tag:
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0">
If you do not use it can be "your impression" that "is not working", it may be just the zoom adjustment.