# Changing textfield in actionscript

**URL:** <https://forum.kirupa.com/t/changing-textfield-in-actionscript/215507>\
**Category:** Uncategorized\
**Created:** [February 7, 2007, 8:00pm UTC](https://forum.kirupa.com/t/changing-textfield-in-actionscript/215507 "2007-02-07T20:00:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sabishi](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@sabishi](https://forum.kirupa.com/u/sabishi)\
**Post date:** [February 7, 2007, 8:00pm UTC](https://forum.kirupa.com/t/changing-textfield-in-actionscript/215507/1 "2007-02-07T20:00:36Z")

</div>

I have this text field and I cant seem to find out how to change the color and font and size of the text.

```auto
_global.textBoxCellWidth = 0;
_global.counter = 0;
var myVars = new LoadVars();
myVars.onLoad = function(success) {
   if (success) {
      for (var yack in this) {
         _global.counter++;
      }
      _global.counter -= 1;
      for (i=0; i<_global.counter; i++) {
         if (i == 0) {
            var j = "";
         } else {
            var j = i-1;
         }
     **_root.createTextField("textField"+i, i, 0, 200, 0, 0, 0);**
**_root["textField"+i].text = this["name"+i];**
**trace("Name: "+this["name"+i]);**
**_root["textField"+i].border = false;**
**_root["textField"+i].multiline = true;**
**_root["textField"+i]._height = _root["textField"+i].textHeight+5;**
**_root["textField"+i]._x = 200;**
**_root["textField"+i]._y = (_root["textField"+j]._y)+(_root["textField"+j]._height);**
         if (_global.textBoxCellWidth<_root["textField"+i].textWidth) {
            _global.textBoxCellWidth = _root["textField"+i].textWidth+5;
         }
         trace(i);
         for (m=0; m<=i; m++) {
            _root["textField"+m]._width = _global.textBoxCellWidth;
         }
      }
   } else {
      trace(" Error loading variables ");
   }
};
myVars.load("<A href="http://goatlan.dynamized.com/mysqltest/mysql.php");">http://goatlan.dynamized.com/mysqltest/mysql.php");

```

does anyone know how I could do this?
