James Dawson
James Dawson

Reputation: 5409

Text area not updating properly, missing characters

I'm trying to update my text area via ActionScript code using this:

scoreLabel.text = this.score.toString();

but it's not behaving correctly. When the score is 18, the text area displays just 1, when it's 26 it won't display anything at all...

As a test, I tried doing this:

scoreLabel.text = "this is a test";

and now the text area is just displaying e:

https://i.sstatic.net/7Yg1I.png

This isn't a font issue, as I'm using Arial. What is going on here?

Upvotes: 2

Views: 2187

Answers (1)

Marty
Marty

Reputation: 39476

Make sure that you've embedded all of the characters you will be using. Assuming just numeric characters, the interface presented when you click "Embed" should look something like this:

enter image description here

Characters that are in the field when compiled will be embedded, and characters that aren't embedded won't render.

Upvotes: 3

Related Questions