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)
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);
}
}
}