# Dynamic Text Field Size by actionscript

**URL:** <https://forum.kirupa.com/t/dynamic-text-field-size-by-actionscript/253702>\
**Category:** flash\
**Created:** [March 4, 2008, 10:15am UTC](https://forum.kirupa.com/t/dynamic-text-field-size-by-actionscript/253702 "2008-03-04T10:15:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukino09](https://avatars.discourse-cdn.com/v4/letter/l/9fc29f/32.png) [@lukino09](https://forum.kirupa.com/u/lukino09)\
**Post date:** [March 4, 2008, 10:15am UTC](https://forum.kirupa.com/t/dynamic-text-field-size-by-actionscript/253702/1 "2008-03-04T10:15:42Z")

</div>

Hi …i have a problem that’s driving me crazy.  
I have a dynamic text box, with font size 160 and College font. (everything’s embedded bla bla bla :D)  
I’m building a little application that with the press of a button you change the font in the dynamic field.

```auto
var collegeNum:TextFormat = new TextFormat();
//collegeNum.bold = true;
collegeNum.size = 160
collegeNum.font = "College";
font4.onRelease = function() {
    txt2.setTextFormat(collegeNum);
};

```

The field (txt2) is already filled with a number…now if I press the button IT SHOULD STAY EXACTLY THE SAME as I’m giving the same font size by code as the field…but it doesn’t, it gets smaller…like if there was a limit to it, and even if I put 500 as the size it still gets smaller sticking to that mysterious limit :mad:

any clues? :o

ps: if you use smaller font size values it works fine, but it seems like that i stops at 100px when i give it in by code.
