nerdexam
Adobe

9A0-148 · Question #81

You have a TextArea component on the stage named myTextArea and a TextFormat object that sets color, font size and alignment named myTextFormat. What is the correct ActionScript to apply the…

The correct answer is C. myTextArea.setStyle("textFormat", myTextFormat). See the full explanation below for the reasoning.

Question

You have a TextArea component on the stage named myTextArea and a TextFormat object that sets color, font size and alignment named myTextFormat. What is the correct ActionScript to apply the TextFormat style to the Text Area?

Options

  • AmyTextFormat.setStyle("textFormat", myTextArea);
  • BmyTextFormat.setStyleDefinition("textFormat", myTextArea);
  • CmyTextArea.setStyle("textFormat", myTextFormat);
  • DmyTextArea.setStyleDefinition("textFormat", myTextFormat);

How the community answered

(41 responses)
  • A
    5% (2)
  • B
    2% (1)
  • C
    80% (33)
  • D
    12% (5)

Community Discussion

No community discussion yet for this question.

Full 9A0-148 Practice