mrvinegar Posted February 19, 2014 Share Posted February 19, 2014 I'm running Phaser using Canvas mode for IE 11, it doesn't seem to work in auto mode. I have an audio pre-loader, like this:var loaderGame1 = new Phaser.Loader(game);loaderGame1.audio('n', ['audio/a.mp3', 'audio/a.ogg']);It works fine in Chrome, Firefox etc, but on IE 11 it hangs and i see ..Phaser.Loader fileComplete invalid index 0....in the console Loading other audio in preload() in this way works fine...game.load.audio('n', ['audio/a.mp3', 'audio/a.ogg']);Help! Link to comment Share on other sites More sharing options...
rich Posted February 20, 2014 Share Posted February 20, 2014 Can you not use game.load.audio? As I'm guessing it's a scope issue. You can use game.load at any point, not just in the preload function You just have to remember to start it going yourself. Link to comment Share on other sites More sharing options...
mrvinegar Posted February 20, 2014 Author Share Posted February 20, 2014 If I use game.load , how do I point it it to a complete handler other than "create" ? Link to comment Share on other sites More sharing options...
mrvinegar Posted February 25, 2014 Author Share Posted February 25, 2014 Still need an answer to my question above Link to comment Share on other sites More sharing options...
mrvinegar Posted February 25, 2014 Author Share Posted February 25, 2014 Aha: game.load.onLoadComplete.add(createGame,this); Link to comment Share on other sites More sharing options...
mrvinegar Posted February 25, 2014 Author Share Posted February 25, 2014 Update, even using this way of loading audio, I still see the error listed at the link below when the page is reloaded https://github.com/photonstorm/phaser/issues/479 Link to comment Share on other sites More sharing options...
Recommended Posts