DevJ Posted June 7, 2016 Share Posted June 7, 2016 Good morning, I've been trying to load a video on my load.js file, from the assets folder using: preload: function(){game.load.video('backMenu', 'assets/backMenu.mp4');} Like they do here: http://phaser.io/examples/v2/loader/load-video But it doesn't work. The console throws the error: Uncaught TypeError: this.game.load.video is not a function I'm using Phaser 2.4.7, any ideas what could it be? Thanks. Link to comment Share on other sites More sharing options...
drhayes Posted June 7, 2016 Share Posted June 7, 2016 Can you show more of your code, like where you say "new Phaser.Game" and where you define your preload function? DevJ 1 Link to comment Share on other sites More sharing options...
DevJ Posted June 8, 2016 Author Share Posted June 8, 2016 20 hours ago, DevJ said: Good morning, I've been trying to load a video on my load.js file, from the assets folder using: preload: function(){game. Sorry for wasting your time, I eventually figured out I wasn't loading the right Phaser.min.js and it was version 2.0. Link to comment Share on other sites More sharing options...
Recommended Posts