kverweij / stagewebviewbridge

Automatically exported from code.google.com/p/stagewebviewbridge
0 stars 0 forks source link

I get Error #2044: Unhandled ErrorEvent:. text=Load error. #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I;m trying to compile as air for ios...

I copy your 'Usage' example exactly and I get:
Error #2044: Unhandled ErrorEvent:. text=Load error.

no matter how/what I try and load a url or string. I tried:

view.loadLocalURL('appfile:/index.html'); (with a valid index.html alongside 
the compiled app)

// load document.html from www root directory
webView.loadLocalURL("applink:/document.html");

// load index.html that is inside the html directory in www root directory
webView.loadLocalURL("applink:/html/index.html");

var html:String = '<html><head><head><body><img 
src="appfile:/image.jpg"></body></html>';
webView.loadLocalString( html );

Original issue reported on code.google.com by grmilbr...@gmail.com on 19 Nov 2011 at 5:30

GoogleCodeExporter commented 8 years ago
ok, I created a www folder(and put the stuff in it and it works) but, now I get:
ReferenceError: Error #1065: Variable JSON is not defined.
    at es.xperiments.media::StageWebViewBridgeExternal/call()[/Users/xperiments/Documents/workspace/StageWebViewBridge/src/es/xperiments/media/StageWebViewBridgeExternal.as:60]
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at es.xperiments.media::StageWebViewBridge/call()[/Users/xperiments/Documents/workspace/StageWebViewBridge/src/es/xperiments/media/StageWebViewBridge.as:438]
    at com.bbraun::ModuleVideo/onViewLoadComplete()[F:\BBRAU\PNBWEB1\trunk\assets\flash\iPad Calculator\com\bbraun\ModuleVideo.as:279]
    at ResourceLoader/nativeReceivedAllData()
    at ResourceLoader/receivedAllData()
    at ResourceLoader/onFileComplete()

Original comment by grmilbr...@gmail.com on 19 Nov 2011 at 5:35

GoogleCodeExporter commented 8 years ago
also, when I click on the button in the html page I get this:

ReferenceError: Can't find variable: StageWebViewBridge
onclick at 
file:///F:/BBRAU/PNBWEB1/trunk/assets/flash/iPad%20Calculator/compiledApp/www/vi
deo/service.html : 58

Original comment by grmilbr...@gmail.com on 19 Nov 2011 at 12:46

GoogleCodeExporter commented 8 years ago
Same problem here.. 

Original comment by jorgeacu...@gmail.com on 21 Nov 2011 at 10:30

GoogleCodeExporter commented 8 years ago
Hi, Can you test with the new sample files provided?

Thanks, waiting comments...

Original comment by xperime...@gmail.com on 22 Nov 2011 at 9:09

GoogleCodeExporter commented 8 years ago
Also, be sure to include the www directory when you package the app....

Original comment by xperime...@gmail.com on 22 Nov 2011 at 9:10

GoogleCodeExporter commented 8 years ago

Original comment by xperime...@gmail.com on 5 Dec 2011 at 1:48