# Auto condensing text

**URL:** <https://forum.kirupa.com/t/auto-condensing-text/289153>\
**Category:** flash\
**Created:** [May 27, 2009, 12:00am UTC](https://forum.kirupa.com/t/auto-condensing-text/289153 "2009-05-27T00:00:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jules\_nz](https://avatars.discourse-cdn.com/v4/letter/j/eada6e/32.png) [@jules\_nz](https://forum.kirupa.com/u/jules_nz)\
**Post date:** [May 27, 2009, 12:00am UTC](https://forum.kirupa.com/t/auto-condensing-text/289153/1 "2009-05-27T00:00:38Z")

</div>

Hi everyone

I need to create a text box in AS3 that will be set in size  
And when the user types inside the box the text cannot go outside that set length  
So if the user enters a longer word the font will be condensed to fit inside that set area  
But the font height can’t change, it can only be the width that is condensing

Is this possible?

If someone has the code, or can point me in the right direction where I can learn how to create something like this is would be greatly appreciated

Thanks
