# AntiAliasType.ADVANCED not working

**URL:** <https://forum.kirupa.com/t/antialiastype-advanced-not-working/248283>\
**Category:** flash\
**Created:** [January 6, 2008, 3:44pm UTC](https://forum.kirupa.com/t/antialiastype-advanced-not-working/248283 "2008-01-06T15:44:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kneural](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@kneural](https://forum.kirupa.com/u/kneural)\
**Post date:** [January 6, 2008, 3:44pm UTC](https://forum.kirupa.com/t/antialiastype-advanced-not-working/248283/1 "2008-01-06T15:44:59Z")

</div>

hi guys, i have no idea what i am doing wrong. been trying to figure this out for a while.

I want to create a TextField (with advanced antialiasing) and apply a TextFormat to it

However, the antialiasing is not working.

th code rather makes sense to me, and i can’t find a way to make it work

(the font has already been embeded into the flash library)

```auto

package 
{
    import flash.display.MovieClip;
    import flash.text.*;

    public class myClass extends MovieClip
    {
        public function myClass():void
        {
            var myText:TextField = new TextField();
            myText.selectable = false;
            myText.antiAliasType = AntiAliasType.ADVANCED;
            myText.type = TextFieldType.DYNAMIC;
            myText.autoSize = TextFieldAutoSize.LEFT;
            myText.text = "Lorem ipsum dolor sit amet";
            
            var myFormat:TextFormat = new TextFormat();
            myFormat.font = "myFont";
            myFormat.size = 8;
            myFormat.color = 0x666666;
            
            myText.setTextFormat(myFormat);
            
            addChild(myText);
        }
    }
}

```
