Hi, I swear I’ve gotten this to work when I just did it on the main timeline
but as part of a package I can’t seem to get my text to appear…
package
{
import flash.text.*;
import flash.display.*;
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;
public class fontMaker extends MovieClip
{
var beloDin:Font = new Belo();
var myFormat:TextFormat = new TextFormat();
var countyTextFieldBelo:TextField = new TextField();
var countyFormat:TextFormat = new TextFormat();
var test:String = "test";
public function fontMaker()
{
trace("fontmaker is run");
countyFormat.font = beloDin.fontName;
countyFormat.size = 600;
countyFormat.color = 0x000000;
countyTextFieldBelo.autoSize = TextFieldAutoSize.LEFT;
countyTextFieldBelo.defaultTextFormat = countyFormat;
countyTextFieldBelo.embedFonts = true;
countyTextFieldBelo.alpha = 1;
countyTextFieldBelo.text = test;
countyTextFieldBelo.x = 300;
countyTextFieldBelo.y = 400;
countyTextFieldBelo.selectable = false;
countyTextFieldBelo.width = 1920;
countyTextFieldBelo.height = 1080;
keyFont();
}
public function keyFont()
{
trace ("keyFont has run");
addChild(countyTextFieldBelo);
}
}
}