p3c
p3c

Reputation: 133

I can't load Spritsheet CreateJS in Cordova projects ( ISO 9 )

I use PreloadJs to load the SpritSheet:

manifestLoad: any[] = [
    { "src": "spriteSheet.json", 
      "id": "spriteSheet-json", 
      "type": createjs.AbstractLoader.SPRITESHEET
    }];
loadQueue.loadManifest(manifestLoad, true, Config.sPathGlobal);

For IOS APP we use the cordova-plugin-wkwebview-engine that implements the WKWebView component instead of the default UIWebView component.

However, you are still not able to use XHR from the file:// protocol.

I changed the parameter of LoadQueue to not use XHR, but some content requires XHR to work like JSON.

Upvotes: 1

Views: 111

Answers (1)

p3c
p3c

Reputation: 133

I solved the problem by registering the plugin in localwebserver.

Today the application run at http://localhost instead of file://

Upvotes: 0

Related Questions