# Make TextFormat "permenant"

**URL:** <https://forum.kirupa.com/t/make-textformat-permenant/284646>\
**Category:** flash\
**Created:** [March 21, 2009, 4:29pm UTC](https://forum.kirupa.com/t/make-textformat-permenant/284646 "2009-03-21T16:29:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bortiquai](https://avatars.discourse-cdn.com/v4/letter/b/c5a1d2/32.png) [@bortiquai](https://forum.kirupa.com/u/bortiquai)\
**Post date:** [March 21, 2009, 4:29pm UTC](https://forum.kirupa.com/t/make-textformat-permenant/284646/1 "2009-03-21T16:29:31Z")

</div>

When adding textFields dynamically, as well as the TextFormat, it seems that the textFormat needs to be applied every time the text is changed. So if I have:

TxtFld.text = ‘This is some text’;  
txtFld.setTextFormat(txtFormat);

That works. But, if i add the line:

txtFld.text = ‘This is the new Text’

Then the format is lost. How can I make it so that I can change the text of the textfield, and not lose the formatting I’ve already applied?

Thanks
