Search code examples
flashactionscriptdynamic-text

Dynamic text not accepting numbers


I wrote a flash game a while back (CS3) and it used to work but when trying to compile the same FLA file in CS5 does not work.

I've got a dynamic text field called tScore

 tScore.text = Score; 

Used to apply the current integer value of the user's score to the text box. It no longer does that. (It appear empty)

By way of simple debugging:

 tScore.text = Score.toString; // no value shown
 tScore.text = String(Score); // no value shown
 tScore.text = "A"; // sets the field to the value A
 tScore.text = "123"; // no value shown
 tScore.text = "C123"; // value "C" shown
 tScore.text = "A12A"; // value "AA" shown
 tScore.text = "000"; // value "000" shown
 tScore.text = "01"; // value "0" shown

I know it's been a long time for weird stuff to happen in flash - but - this makes no sense to me.

Has anyone experienced a text field that doesn't accept digits?


Solution

  • Sounds like it could be a font embedding issue, it has changed somewhat between CS3 and CS5. So you could go into the "Font Embeding" panel and make sure "Numerals" are included for the font used.