0

/t5/animate-discussions/textformat-question/td-p/5297297
Jul 07, 2013
Jul 07, 2013
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
TOPICS
ActionScript
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
1 Correct answer
LEGEND
,
Jul 07, 2013
Jul 07, 2013
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
LEGEND
,
/t5/animate-discussions/textformat-question/m-p/5297298#M137829
Jul 07, 2013
Jul 07, 2013
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

Guest
AUTHOR
/t5/animate-discussions/textformat-question/m-p/5297299#M137830
Jul 07, 2013
Jul 07, 2013
Copy link to clipboard
Copied
Thanks Ned.
I also hadn't imported the correct text classes.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

