Make equation into dynamic textbox

Hy everyone,

Im trying to do a simple addition, like 2 plus 2, adn then send it to my dynamic textbox.

Im sending the value to the box wrong. :confused:

I show u how im trying to do. And hope u can help me.


somar (40);

function somar(numero1:Number){
    soma = soma + numero1;
    trace(soma);
    btn_somar.value = soma;
}