November 08, 2011
StageWebView Videos

Create StageWebView instance and load video:

var webView:StageWebView = new StageWebView();
var path:String = 'file://path_to_video/video.mp4';
webView.stage = this.stage;
webView.viewPort = new Rectangle( x, y, width, height);
webView.loadURL(path);

Dispose and remove:

webView.reload();
webView.viewPort = null;
webView.dispose();
webView = null;
Copyright © 2022 Allan Kiezel – Long Island Web Designer & App Developer. All rights reserved.