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)- A5% (2)
- B2% (1)
- C80% (33)
- D12% (5)
Community Discussion
No community discussion yet for this question.