oliversb Posted May 27, 2014 Share Posted May 27, 2014 XMLHttpRequest cannot load file:///C:/Users/Oliver/Pictures/project%20powerm/as.pm%20files/HTML%20Build/media/pmSPRITESprite.json. Cross origin requests are only supported for HTTP. phaser.js:43925 Phaser.Loader.fileCompletephaser.js:43925 file.data.onloadphaser.js:43648 Phaser.Loader dataLoadError: pmSPRITESprite phaser.js:44103Uncaught NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'file:///C:/Users/Oliver/Pictures/project%20powerm/as.pm%20files/HTML%20Build/media/pmSPRITESprite.json'. I am trying to load a JSON spritesheet and this is the errors that I am getting. Is it a problem grabbing information from the JSON file or is it a syntax error in the JSON file? How can I fix this? Do I need to setup a server or something? Is there a way I can avoid setting up a server. Thanks Link to comment Share on other sites More sharing options...
rich Posted May 27, 2014 Share Posted May 27, 2014 Because of Part 1 of the guide: http://phaser.io/getting-started-js.php Link to comment Share on other sites More sharing options...
oliversb Posted May 27, 2014 Author Share Posted May 27, 2014 Because of Part 1 of the guide: http://phaser.io/getting-started-js.phpThanks Link to comment Share on other sites More sharing options...
Recommended Posts