# Text Field - alignment with sigle textfield

**URL:** <https://forum.kirupa.com/t/text-field-alignment-with-sigle-textfield/285776>\
**Category:** flash\
**Created:** [April 6, 2009, 11:49am UTC](https://forum.kirupa.com/t/text-field-alignment-with-sigle-textfield/285776 "2009-04-06T11:49:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![energy](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@energy](https://forum.kirupa.com/u/energy)\
**Post date:** [April 6, 2009, 11:49am UTC](https://forum.kirupa.com/t/text-field-alignment-with-sigle-textfield/285776/1 "2009-04-06T11:49:45Z")

</div>

Friends,

Lets say i have a AS code

a.text = "OOO " + "BRO  
";  
a.text+= "iii " + "BRO  
";

If we type in a notepad then it is proper  
 ![](http://img151.imageshack.us/img151/9476/notepad.jpg)

But in the .swf , it’s like the below image.

![](http://img151.imageshack.us/img151/5391/textalign.jpg)

It is clear in a Flash text field each character uses different width. So it doesn’t line up the text properly. I mean, like in the example, second line “BRO” is a bit left as compared to “BRO” in first line. Is there any setting/code that i can use so that it displays like above image of the notepad where each character consumes same amount of screen space so that character in each line lines-up properly.

Thanks!

EDIT: There is some typo in the title . Please ignore. The title is “Text Field - character alignment within single textfield”
