title: SoundJS - registering 4 sounds in an audiosprite
body: <p>I'm loading a SoundJS 1.0 audiosprite with preloadJS 1.0. The audiosprite is split into 4 sounds which I'm calling a,b,c and d. (Elsewhere in the code it randomizes which of the 4 sounds to play.)</p>
  
  <p>Here's the basic loading and declaration code:</p>
  
  <pre><code> var queue = new createjs.LoadQueue();
   createjs.Sound.alternateExtensions = ["mp3"];
   queue.addEventListener("complete",handleComplete);
  
   //load audiosprite and define start/duration times with variables.
   queue.loadFile({src:path,data:{
       audioSprite:[
       {id:sound+"a", startTime:aStart, duration: aDur},
       {id:sound+"b", startTime:bStart, duration: bDur},
       {id:sound+"c", startTime:cStart, duration: cDur},
       {id:sound+"d", startTime:dStart, duration: dDur},
       ]
       }});
  
   //register the 4 audioSprite sounds as individual sound instances
      myAudio[sound+"a"] = createjs.Sound.createInstance(sound+"a");
      myAudio[sound+"b"] = createjs.Sound.createInstance(sound+"b");
      myAudio[sound+"c"] = createjs.Sound.createInstance(sound+"c");
      myAudio[sound+"d"] = createjs.Sound.createInstance(sound+"d");
  </code></pre>
  
  <p>When I load the sound I get: Uncaught TypeError: Cannot read property '1' of null</p>
  
  <p>If I comment out the last 3 lines and just create 1 instance (eg. sound+"a"), the sound loads and I get no error, but obviously I only get 1 of the 4 parts.</p>
  
  <p>I feel like the problem is it doesn't like me calling createInstance back to back like this. What is the correct way to do this? </p>