MattTuttle/HaxePunk — pull request #39 by zlumer (2012-10-31 18:40:11+00:00)
Title: onUpdate callback for tweens

Hey,
Thought you'd be interested - I've added an onUpdate callback for standard tweens - makes it easier to prototype. Looks like this:
```as3
var t:LinearMotion = new LinearMotion(TweenType.OneShot);
t.setMotion(0, 0, 100, 100, 1);
t.onUpdate = function()
{
e.x = t.x;
e.y = t.y;
};
e.addTween(t);
```
Although for it to work with custom tweens, you need to modify them first to override `_update` instead of `update`