Question
Size displayed on board <loadURL>
I would like to know how I can define the size at which StageWebView information will be displayed on my stage.
Currently it occupies the entire stage, I would like to know how I can stay with the dimensions below:
width = 320 x height = 245
Thank you in advance, follow the code:
stage.scaleMode = StageScaleMode.NO_BORDER;
import flash.display.MovieClip;
import flash.media.StageWebView;
import flash.geom.Rectangle;
import flash.events.MouseEvent;
var webView: StageWebView = new StageWebView();
click.addEventListener(MouseEvent.CLICK, acc);
function acc (Event:MouseEvent) : void
{
webView.stage = this.stage;
webView.viewPort = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);
webView.loadURL("https://google.com/");
}