Dynamic Text display Number Variable

What I got. (I’m a noob so please tolerate how stupid my questions probably are.



public var score:Number = 0;

var scoreNumber:TextField = new TextField();
scoreNumber.type = TextFieldType.DYNAMIC;
scoreNumber.text = ????;


Okay, I apparently can’t pass the score to the textBox.

  1. How do I convert the variable to a string?

  2. How do I update the textBox? I thought I saw some special method somewhere but I’m not sure where.

  3. What is the best way of updating the ‘score’ variable.