# setTextformat and defaultTextformat

**URL:** https://forum.kirupa.com/t/settextformat-and-defaulttextformat/295658
**Category:** flash
**Created:** [September 2, 2009, 4:07pm UTC](https://forum.kirupa.com/t/settextformat-and-defaulttextformat/295658 "2009-09-02T16:07:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![RossKidd](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@RossKidd](https://forum.kirupa.com/u/RossKidd)
#### Post date: [September 2, 2009, 4:07pm UTC](https://forum.kirupa.com/t/settextformat-and-defaulttextformat/295658/1 "2009-09-02T16:07:40Z")

</div>

Hi,

Can someone explain the difference? Here is my problem

I set a textformat and apply it with setTextFormat, this is fine when my movie runs however when I try and change the text (with a mouse over of a button) this formatting disappears and have to set it again after I have changed the value of the text box. Why does it resort back to the original formatting? Is there not a way to set a textfield and keep it set? I know it is just one line but it is not ideal.

Thanks,

function setText(evt:MouseEvent) {  
clientText.text = “hello2”;  
clientText.setTextFormat(myFormat);

}
