# Problem with TextFormat

**URL:** https://forum.kirupa.com/t/problem-with-textformat/188646
**Category:** flash
**Created:** [May 9, 2006, 6:28pm UTC](https://forum.kirupa.com/t/problem-with-textformat/188646 "2006-05-09T18:28:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![turb](https://avatars.discourse-cdn.com/v4/letter/t/258eb7/32.png) [@turb](https://forum.kirupa.com/u/turb)
#### Post date: [May 9, 2006, 6:28pm UTC](https://forum.kirupa.com/t/problem-with-textformat/188646/1 "2006-05-09T18:28:22Z")

</div>

Hi,

i’m doing a simple test, a loop to change a textfield text. But, I don’t know if it’s normal but I’ve to always re-declare the textformat after I change the text inside the textfield?

I’m pretty sure I don’t have to do this, can someone help me?

Frame #1

```auto

//Define Textfield Style
var bv08:TextFormat = new TextFormat('Bavaria', 8, 0xFFFFFF, null, null, null, null, null, 'right');

this.createTextField('num', this.getNextHighestDepth(), -3, -3, 25, 13);

this.num.text = 1;
this.num.embedFonts = true;
this.num.setTextFormat(bv08);
this.l = 0;

```

Frame #2

```auto

if (this.l < 100) {
this.l++;
this.num.text = this.l;
this.num.setTextFormat(bv08);
} else {
this.l = 0;
this.num.text = this.l;
this.num.setTextFormat(bv08);
}

```

Frame #3

```auto

this.gotoAndPlay(2);

```

[URL=“[http://www.kirupa.com/forum/misc.php?do=bbcode#code](http://www.kirupa.com/forum/misc.php?do=bbcode#code)”]
