Cannot print variables onto the screen <p>I want to print variables onto the screen of my game. I am using text boxes to display the variables. When I try update the text boxes, the text boxes are blank. </p> <p>I use an EventListener to update the text boxes:</p> <p><code>// Add the EventListener that updates the game HUD addEventListener(Event.ENTER_FRAME, updateHUD);</code></p> <p>Here is the 'updateHUD()' function:</p> <pre><code> public function updateHUD(event:Event) { txtHealth.text = String(player.pHealth); txtDarts.text = String(player.pAmmo); txtScore.text = String(player.pScore); }` </code></pre> <p>If I place <code> txtScore.text = String("score");</code> within this code, not even "score" is printed. The Text Box is still blank.</p> <p>I was talking with a friend about this. He said he had a similar issue in his project. His problem had to do with incorrect Text Box settings. The boxes I want to update are set to "Classic Text", "Dynamic Text," and "Singleline."</p> <p>I have other text boxes that act as "labels." They are displayed just fine on the screen. But I do not try to change them.</p> <p>Any help would be appreciated.</p> <p>Thanks, Christian</p>