# MX2004:SetTextFormat

**URL:** <https://forum.kirupa.com/t/mx2004-settextformat/171079>\
**Category:** flash\
**Created:** [December 1, 2005, 6:35pm UTC](https://forum.kirupa.com/t/mx2004-settextformat/171079 "2005-12-01T18:35:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![watcher](https://avatars.discourse-cdn.com/v4/letter/w/77aa72/32.png) [@watcher](https://forum.kirupa.com/u/watcher)\
**Post date:** [December 1, 2005, 6:35pm UTC](https://forum.kirupa.com/t/mx2004-settextformat/171079/1 "2005-12-01T18:35:54Z")

</div>

I am experiencing strange issue with embedded font. So first i do all the things i need to properly embedd my font[font is linked in library]:

```auto

//TEXT FORMAT:
var tfrTitle:TextFormat = new TextFormat();
	with(tfrTitle){
		font = "Tahoma";
		size = 14;
		color = sColorFont;
	}
tTitle.selectable = false;
tTitle.embedFonts = true;
tTitle.text = sTitle;
tTitle.setTextFormat(tfrTitle);

```

all works the way it’s supposed to work… masking etc. - but if i try to : INSERT [into the timeline where the textfield with imbedded font is placed] ANOTHER keyframe further in time[let’s call it SECOND KEYFRAME]. E.G.:i want to MOVE that textfield from 1 place to another on timeline.

When i view the animation, all works fine UNTIL that textfield reaches the second keyframe [and stops animationing] and DISAPPEARS.

I found out that when i insert into that second frame - ABOVE code - AGAIN, text appears again. It looks like textfield’s AS was reseted or something… heh

Why does this happen? anybody knows?
