Calculator w. functions

I tried to make this simple addition thing, using functions. Ive posted the .fla. The user will put in 2 numbers, and i wanted it to add them together, and in the answer textbox, show the answer. Right now all it does is 5 + 3 = 53. So i dont know whats up.

ah…i see.

everyone has this problem. whenever you extract text from a textbox, it results to just that, text, or in other words, string type. What you need to do is convert that string to a number or integer by using the Number(string); function.

I guarantee that’s your problem.

You need to convert string into number.

[edit] yep thoriphes was faster and explained better[/edit]

Thats great, thanks a lot!

PS. Ive been timing you guys, this is your fastest time yet, half a second after i posted it! Thats awesome!

Thoriphes - 1
Claudio - 0

*Originally posted by session9 *
**PS. Ive been timing you guys, this is your fastest time yet, half a second after i posted it! Thats awesome! **
No problem :stuck_out_tongue: