<!-- 
// **********************************************************************************************
//
// file			: texttween.js
// Author		: Giovambattista Fazioli (e-lementi.com)
// Web			: http://e-lementi.com
// E-mail		: info (at) e-lementi (dot) (com)
// Modified		: 10/08/2006 11.06
//
// Copyright (C) 2002-2006 e-lementi
//
// DESCRIPTION
//	Porting da ActionScript a Javascript degli oggetti Tween di Adobe Flash
//
// **********************************************************************************************

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);	
}

//-->