Código ActionScript :
//variables para agregar solo numeros
valor1.restrict = "0-9";
valor2.restrict = "0-9";
valor3.restrict = "0-9";
valor4.restrict ="0-9";
resultado1.restrict = "0-9";
resultado2.restrict = "0-9";
resultado3.restrict = "0-9";
resultado4.restrict = "0-9";
resultadototal.restrict="0-9";
//establecer parametros
valor1.onChanged = function():Void{
if(valor1.text!="")
var num1 = new Number(valor1.text);
else
var num1 = new Number();
resultado1.text = num1 * 6500;
}
valor2.onChanged = function():Void{
if(valor2.text!="")
var num2 = new Number(valor2.text);
else
var num2 = new Number();
resultado2.text = num2 * 50;
}
valor3.onChanged = function():Void{
if(valor3.text!="")
var num3 = new Number(valor3.text);
else
var num3 = new Number();
resultado3.text = num3 * 60;
}
valor4.onChanged = function():Void{
if(valor4.text!="")
var num4 = new Number(valor4.text);
else
var num4 = new Number();
resultado4.text = num4 * 300;
resultadototal.text = (resultado1.text+resultado2.text+resultado3.text+resultado4.text) ? String(resultado1.text+resultado2.text+resultado3.text+resultado4.text):"";
} 