I can’t figure out why the event listener callback function isn’t being fired when a child object is being clicked. Since the “SelectionPoint” object is a child of this class, shouldn’t the listener get notified of the MouseEvent.CLICK event during the capture phase?
package {
import flash.display.*;
import flash.events.*;
import SelectionPoint;
public class AreaSelectionManager extends Sprite {
public function AreaSelectionManager(){
addEventListener(MouseEvent.CLICK, function(evt){ trace('hi'); });
}
// Create new point
public function newPoint(x:Number, y:Number):void {
var point:SelectionPoint = new SelectionPoint(x, y);
addChild(point);
}
}
}