Skip to main content
July 7, 2013
Answered

TextFormat question

  • July 7, 2013
  • 2 replies
  • 520 views

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

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer Ned Murphy

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

2 replies

Ned Murphy
Ned MurphyCorrect answer
Legend
July 7, 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

July 7, 2013

Thanks Ned.

I also hadn't imported the correct text classes.