You are using ActionScript 3.0. You want a property to be visible only in the class that defines it. You do NOT want this property to be inherited by any subclasses. Which access modifer should you use?
You want to handle the click event of a Button control. The id property of the Button is set to myButton. You are dispatching the event object to a custom handler method with this call to the addEventListener()
method:
myButton.addEventListener(MouseEvent.CLICK, clickHandler);
You want to be able to determine whether the user held down the Alt, Shift or Ctrl keys when clicking the Button.
Which is the correct signature of the clickHandler()method?