Copy link to clipboard
Copied
Hi
Why won't TextFormat won't accept this...?
static public var centerText:TextFormat = new TextFormat("Volter (Goldfish)", myFont, textColor, null, null, null, null, null, "TextFormatAlign.CENTER");
It keeps saying Error #2008: Parameter align must be one of the accepted values.
Cheers guys
While there is no telling what you have defined for a couple of those values, you should not be putting quotation marks around TextFormatAlign.CENTER
Copy link to clipboard
Copied
While there is no telling what you have defined for a couple of those values, you should not be putting quotation marks around TextFormatAlign.CENTER
Copy link to clipboard
Copied
Thanks Ned.
I also hadn't imported the correct text classes.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now