I am new to AS 3.0 so I created a simple program to add two numbers and display the total but I am not able to get it working.
Example:
Addition.as - ActionScript file
public function Addition():void
{
var a:Number = firstnumber.text;
var b:Number = secondnumber.text;
totalnumber.text = (a + b);
}
The problem is: Implicit coercion of a value of type String to an
unrelated type Number.
Thank you for any kind of help!

