title: Tweenjs undefined is not a function
body: <p>I'm creating a small game where the player needs to catch a mouse, currently I am stuck at the point of making the mouse flee to it's hole. This is my code:</p>
  
  <pre><code>var contactListener = new Box2D.Dynamics.b2ContactListener;
  contactListener.BeginContact = function(contact) {
  
      var fixA = contact.GetFixtureA().GetBody().GetUserData();
      var fixB = contact.GetFixtureB().GetBody().GetUserData();
  
      // If ball hits mouse
      if ((fixA == "Mouse" &amp;&amp; fixB == "Ball") || (fixB == "Mouse" &amp;&amp; fixA == "Ball")) {
          console.log("Ball hits mouse");
          // if ball hits trap
          }else if ((fixA == "Trap" &amp;&amp; fixB == "Ball") || (fixB == "Trap" &amp;&amp; fixA == "Ball")) {
          // mouse x is between the edges of the trap
          if ((m.getX() &gt; t.getX() -50) &amp;&amp; (m.getX() &lt; t.getX()+50)) {
              console.log("mouse captured!");
              }else{
              // if mouse isnt fleeing yet
              if (!mouseFleeing) {
                  // mouse is fleeing
                  mouseFleeing = true;
                  var targetX = h.getX();
                  console.log("mouse escaped!");
                  // animate mouse to hole, but it doesnt work
                  createjs.Tween.get(m, {loop:false}).to({x:targetX}, 1000);
              }
          }
          return false;
      }
  }
  </code></pre>
  
  <p>Currently, I get the following error in my console (though the console log of the mouse escaping is working):</p>
  
  <p>Uncaught TypeError: undefined is not a function. tweenjs-0.5.1.min.js:17</p>
  
  <p>Am I misusing the Tween function?</p>