This variable seems wrong _stageWebView
, you shouldn’t set up on webview?
Thus:
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 doesn’t 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 doesn’t seem to work check if the site you are accessing uses this tag:
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0">
If not using can be "your print" that "is not working", it can just be the zoom adjustment.
Hello Rose, the answer helped you, there is some doubt about her?
– Guilherme Nascimento