# Input text component font style

**URL:** <https://forum.kirupa.com/t/input-text-component-font-style/243928>\
**Category:** Uncategorized\
**Created:** [November 12, 2007, 5:55pm UTC](https://forum.kirupa.com/t/input-text-component-font-style/243928 "2007-11-12T17:55:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GrndMasterFlash](https://avatars.discourse-cdn.com/v4/letter/g/71c47a/32.png) [@GrndMasterFlash](https://forum.kirupa.com/u/GrndMasterFlash)\
**Post date:** [November 12, 2007, 5:55pm UTC](https://forum.kirupa.com/t/input-text-component-font-style/243928/1 "2007-11-12T17:55:05Z")

</div>

ok why does AS3 input text classes suck compared to AS2?

my problem is i have an input text box that needs to get focus, that works:hitman:

but i also want to change to the texts font and align it to center

looking through other threads is saw

answer.setStyle(“fontFamily”, “Arial”);

answer.textField.textAlign = “center”;

however the setStyle is an AS2 class of textArea and textField.textAlign doesn’t do squat…

any know how to mess with properties of the textField besides the the given AS3 classes…

i have looked through this page and all its related topics and its of no help…  
[http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs\_Parts&file=00003499.html](http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00003499.html)

_ **EDIT** _

if some one could show me a way to set the focus to an input textFeild and not use the input textArea component that would also help fix my problem.
