/*////////////
TextTween
Author: Philippe Maegerman
Email: mx2004-at-pandora.be
Creation Date: February 28 2006
*/////////////
/////////////
/////////////
/////////////
/////////////

TextTween.prototype = new Tween();
TextTween.prototype.constructor = Tween;
TextTween.superclass = Tween.prototype;

function TextTween(obj,property,txt,func,duration){
	this.targetObject = obj;
	this.targetProperty = property;
	this.txt = txt;
	if (func!=null && func!='') {
		this.func = func;
	}
	this.init(new Object(),'x',func,0,txt.length,duration);
}
var o = TextTween.prototype;
o.targetObject = {};
o.targetProperty = {};
o.fromColor = '';
o.toColor = '';
o.currentColor = '';
o.onMotionChanged = function(evt){
	var v = evt.target._pos;
	this.targetObject[this.targetProperty] = this.txt.substr(0,v);	
}

