Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

TextFormat question

Guest
Jul 07, 2013 Jul 07, 2013

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
492
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 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

Translate
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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 07, 2013 Jul 07, 2013
LATEST

Thanks Ned.

I also hadn't imported the correct text classes.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines