F8as2-displaying leading zeros in a dynamic text field


f8as2-

 

background:

 

currently have use 2 different text fields display 10000 due different font sizes.

 

the 10 larger font , 000 smaller font.  when assign '0 'to dynamic text fields of smaller font '0' not '000' want.

 

question:

 

is there easy way display leading zeros in dynamic text field?  or can dynamic text field have different character positions displayed in different font sizes?  or both?

 

thanks help.

one textfield can display variety of fonts/font sizes , other textformat characteristics using either style sheets or settextformat() method of textfields.

 

to assign leading zeros, use string:

 

yourtf.text = "000";



More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???