Question

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?

Was it helpful?

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.

OTHER TIPS

I solved the issue changing the property Anti-alias of the dynamic text to Use device fonts (instead of default "Anti-alias for readability").

Sure, the text looks ugly but it's acceptable in my case.

I haven't experienced anything like that before. I suggest you use traces to determine whether the textbox even exists and whether it holds anything at all.

Also check if the properties of the textbox are still valid (maybe CS5 weirded it up and make it static or input for all you know)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top