StageWebView gives "ReferenceError"
I've noticed in the trace window that I sometimes get the messge
ReferenceError: Can't find variable: setProgress
When I call
| _webView.loadURL("javascript:setProgress('" + theLocation + "');"); |
where _webView is an active StageWebView inside my AIR application (running on Windows) - (AIR v23 - but seems to happen with all AIR versions)
This error does not seem to trigger the Error event handler that I setup
_webView.addEventListener(ErrorEvent.ERROR, webViewError); |
As this also logs the date and time that the error occurs e.g.
private function webViewError(evt:ErrorEvent)
{
Main.log("Error: Webview - "+evt.toString());
}
StageWebView - Adobe ActionScript® 3 (AS3 ) API Reference
So I have no way to handle it.
I've tracked down when it occurs to being when load.URL is called while a page still has pending load items including ajax
Is there a event handler I can attach so that these errors can call a my error handler callback ?
