I´m getting this error when I try to load a local html on StageWebViewBridge container:
Error #2044: Unhandled ErrorEvent:. text=Load error.
code:
private function onDiskCacheEnd( e:StageWebviewDiskEvent ):void{
bridge = new StageWebViewBridge( 0, 0, 1280, 720 );
bridge.loadLocalURL('applink://index.html');
...
index.html is located in www folder.
Thanks!
Here StageWebView cannot refer the URL you given in loadURL(), because applink is get reference by single slash in the document. But i couldnt try with applink. StageWebViewBridge is doesn't handle ErrorEvent in their override protected addEventListener function. If you need to handle this error event you should add
and also need to remove listeners like,
now you can handle the ErrorEvent by
and, you always better to give file url to load local html file like,