Page does not load on screen size

Asked

Viewed 54 times

0

I want to change the code to open the screen size. I am 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");
  • Hello Rose, the answer helped you, there is some doubt about her?

1 answer

0

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.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.