using preload.js and create.js load an image?
<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>

<blockquote>
  <p>stage = new createjs.Stage(canvas);
          preload = new createjs.PreloadJS();</p>
</blockquote>

<p>or else the debugging throws errors.</p>

<p>However the program breaks when bgImage is initialised. Any suggestive codes i can use?</p>

<blockquote>
  <p>bgImage = preload.getResult("screenImage").Result;
          bgBitmap = new Bitmap(bgImage);
          bgBitmap.scale_X = SCALE_X;
          bgImage.scale_Y = SCALE_Y;
          stage.addChild(bgBitmap);
          stage.update();</p>
</blockquote>
