# autoSize not working

**URL:** https://forum.kirupa.com/t/autosize-not-working/272640
**Category:** flash
**Created:** [October 7, 2008, 9:00am UTC](https://forum.kirupa.com/t/autosize-not-working/272640 "2008-10-07T09:00:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gykz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/gykz/32/909_2.png) [@gykz](https://forum.kirupa.com/u/gykz)
#### Post date: [October 7, 2008, 9:00am UTC](https://forum.kirupa.com/t/autosize-not-working/272640/1 "2008-10-07T09:00:03Z")

</div>

Hi,

Once again text and as3 is a nightmare.

Could anyone please check this and tell me why text doesn’t wrap at all but when I force a  
?

```auto
var format:TextFormat = new TextFormat;
format.font = "Gotham";
format.size = 11;
format.color = 0x735322;
			
tf = new TextField();
tf.width = 150;
tf.embedFonts=true;
tf.antiAliasType = AntiAliasType.ADVANCED;
tf.text = _nom + "
" + "("+_cd+") "+_duracio;
tf.setTextFormat(format);
tf.autoSize=TextFieldAutoSize.LEFT;
tf.selectable = false;

```

Thanks a lot
