title: Can`t body onload init() function
body: <p>I am trying to body onload my init function. but my html file tells me it can not find the init. I have put the init in a external js file called game. I am adding this script with script src but it still can not read my function. does somebody know what is going wrong?</p>
  
  <p><strong>html :</strong></p>
  
  <pre><code>&lt;script src="http://code.createjs.com/easeljs-0.7.1.min.js"&gt;&lt;/script&gt;
  &lt;script src="js/game.js"&gt;&lt;/script&gt;
  &lt;script src="js/stone.js"&gt;&lt;/script&gt;
  
  
      &lt;style&gt;
  
      #canvas {
          border-style:solid;
          border-width:5px;
  
  
      }
  
  
  
      &lt;/style&gt;
  
      &lt;/head&gt;
  
      &lt;body onload="init();"&gt;
              &lt;canvas id="canvas" width="960" height="580"&gt;&lt;/canvas&gt;
      &lt;/body&gt;
  
  
  
  
  
  
  
  
  var game = {
  
          player :null,
          stage: null,
          score: 0,
          rocks: [], //maak er een array van omdat je we straks meerdere stenen willen
  
          init: function() {
  
                  this.stage = new createjs.Stage("canvas");
                  this.score = 0;
  
                  this.initPlayer();
                  this.initStone();
  
                  this.start();       
  
  
          }
  
  };
  </code></pre>