Page does not load in screen size

0

I want to change the code to open in screen size. I'm using:

 import flash.geom.Rectangle;
 import flash.media.StageWebView;
 var webView:StageWebView = new StageWebView();
 webView.stage = this.stage;
_stageWebView.viewPort =  new Rectangle(0,0,stage.fullScreenWidth, stage.fullScreenHeight);
webView.loadURL("http://example.com");
    
asked by anonymous 07.03.2016 / 12:44

1 answer

0

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.

    
09.03.2016 / 00:47