How do I output a number to a dynamic textfield?

I have a simple dynamic textfield with the variable name total_txt. Why am I getting an error with this code?


var myNum:Number = 0.00;
total_txt.text = myNum;

I’m assuming it’s because the textfield is only wanting to read a string and not a number, but how do I output a number to a dynamic textfield?

Jesse