How to load offline HTML file (ipad, android and desktop application)
Im trying to load HTML file form my PC using below code but got some error
package {
import flash.media.StageWebView;
import flash.display.MovieClip;
import flash.geom.Rectangle;
public class Main extends MovieClip {
// centralized StageWebView
private var webView:StageWebView;
public function Main()
{
}
// open StageWebView
public function LoadSWV():void {
webView = new StageWebView();
webView.stage = this.stage;
webView.viewPort = new Rectangle(50,60,460,330);
webView.loadURL("test.html");
}
// open StageWebView
public function CloseSWV():void {
webView.stage = null;
webView.viewPort = null;
webView.dispose();
webView = null;
}
}
}
got output error
Error #2044: Unhandled ErrorEvent:. text=The protocol is not supported
I attached my “test.html” file publish setting

