title: using preload.js and create.js load an image?
body: <p>I am following up with a game development tutorial for windows 8 here <a href="http://www.sitepoint.com/creating-a-simple-windows-8-game-with-javascript-game-basics-createjseaseljs/" rel="nofollow">http://www.sitepoint.com/creating-a-simple-windows-8-game-with-javascript-game-basics-createjseaseljs/</a>.
  The tutorial probably needs updating since at some point i had to add in createJS before using PreloadJS.</p>
  
  <p>example:</p>
  
  <pre><code>stage = new createjs.Stage(canvas);
  preload = new createjs.PreloadJS();
  </code></pre>
  
  <p>or else the debugging throws errors.</p>
  
  <p>However the program breaks when bgImage is initialised. Any suggestive codes i can use?</p>
  
  <pre><code>bgImage = preload.getResult("screenImage").Result;
  bgBitmap = new Bitmap(bgImage);
  bgBitmap.scale_X = SCALE_X;
  bgImage.scale_Y = SCALE_Y;
  stage.addChild(bgBitmap);
  stage.update();
  </code></pre>