How to change the font size for text input in Flash CS6

Apple. picture Apple. · Oct 20, 2013 · Viewed 11.4k times · Source

I am having trouble changing the font size for the flash component, text input. This text input component is already ready made where you can find it in components. So i just drag and drop it onto the stage. However, the font size is too small. And I can't change it. Or do I need to change it through coding in AS3? Thank you!

Answer

Ivan Chernykh picture Ivan Chernykh · Oct 20, 2013

You can set TextInput' style this way:

var format:TextFormat = new TextFormat();
format.size = 18; // your value here
instanceName.setStyle("textFormat", format);

Read more about TextFormat: link.