# Can't fade dynamic text through AS

**URL:** <https://forum.kirupa.com/t/cant-fade-dynamic-text-through-as/233154>\
**Category:** flash\
**Created:** [July 20, 2007, 4:10pm UTC](https://forum.kirupa.com/t/cant-fade-dynamic-text-through-as/233154 "2007-07-20T16:10:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bardic](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bardic/32/3708_2.png) [@bardic](https://forum.kirupa.com/u/bardic)\
**Post date:** [July 20, 2007, 4:10pm UTC](https://forum.kirupa.com/t/cant-fade-dynamic-text-through-as/233154/1 "2007-07-20T16:10:46Z")

</div>

Ok, I know I need to embed the font and declare the font in a setFormat string. And I have… the the bloody thing still doesn’t work.

```auto

this.createEmptyMovieClip("cat",this.getNextHighestDepth());
cat.createTextField("txt",this.getNextHighestDepth(),0,0,100,50);

var my_fmt:TextFormat = new TextFormat();
my_fmt.font = "Times";

cat.txt.embedFonts = true;
cat.txt.text = "cat";
cat.txt.setTextFormat(my_fmt);

cat._alpha = 50;

```

Anyone see what I’m doing wrong?
