nerdexam
Adobe

9A0-182 · Question #92

You have created a Flex application that contains a custom component with the id of myComp. The Application class needs to be alerted whenever a private property named score is updated inside…

The correct answer is A. myComp would dispatch a custom event when score is changed. See the full explanation below for the reasoning.

Question

You have created a Flex application that contains a custom component with the id of myComp. The Application class needs to be alerted whenever a private property named score is updated inside myComp. Which approach should be used to implement this functionality while maintaining encapsulation?

Options

  • AmyComp would dispatch a custom event when score is changed
  • BThe Application class would bind to the score property in myComp
  • CThe Application class would add an event listener to the control updating score in myComp
  • DThe score property would be changed to a public property

How the community answered

(27 responses)
  • A
    81% (22)
  • B
    4% (1)
  • C
    4% (1)
  • D
    11% (3)

Community Discussion

No community discussion yet for this question.

Full 9A0-182 Practice