textformat as2

if you want to change your font on flash, it's not so hard, you just need to learn the next object:

you need to use in textFiled

then you need to create var of TextFormat objec

fill that var on your custom format with attributes like: size, color, bold and more

then insert the TextFormat var into the TextField with the .setTextFormat( function.

for working code example see the tutorial below

 

as2 TextFormat align size color bold font family for flash text field
Flash
How to append text format to your text field with code behind in flash action script 2. Create text field. : Create text format and set size, color, bold, font and align. Add this format to your text field.

 

 

כתיבת תגובה