I have the following code (stripped down):
public class Character extends MovieClip
{
var happiness:uint;
public Character()
{
happiness = 0;
}
private function doTheTween():void
{
TweenLite.to(this, 3, { happiness:100, onComplete:onTweenComplete } );
}
private function onTweenComplete():void
{
// do stuff
}
}
When tracing the happiness variable every frame it stays at 0 after the tween has been called, and the onTweenComplete function is never called. Is it even possible to use TweenLite in this manner or have I missed something stupidly obvious?