var r = require('../lib/r.js');
r.config({
  paths: {
    shifty: "../dist/shifty",
    underscore: "../dist/underscore",
    rekapi: "../dist/rekapi"
  }
});

r(['rekapi'], function(Kapi) {
  var kapi = new Kapi();
  var actor = new Kapi.Actor();
  kapi.addActor(actor);

  actor
    .keyframe(0, { x: 0 })
    .keyframe(250, { x: 100 });

  kapi.on('play', function () {
    console.log('The animation has begun!');
  });

  kapi.on('frameRender', function () {
    console.log('Actor state:', actor.get());
  });

  kapi.on('stop', function () {
    console.log('The animation has completed!');
  });

  kapi.play(1);
});

var r = require('../lib/r.js');
r.config({
  paths: {
    shifty: "../dist/shifty",
    underscore: "../dist/underscore",
    rekapi: "../dist/rekapi"
  }
});

r(['rekapi'], function(Kapi) {
  var kapi = new Kapi();
  var actor = new Kapi.Actor();
  kapi.addActor(actor);

  actor
    .keyframe(0, { x: 0 })
    .keyframe(250, { x: 100 });

  kapi.on('play', function () {
    console.log('The animation has begun!');
  });

  kapi.on('afterUpdate', function () {
    console.log('Actor state:', actor.get());
  });

  kapi.on('stop', function () {
    console.log('The animation has completed!');
  });

  kapi.play(1);
});

Update test.node.js with new event name