initialize="init(event)">
import mx.controls.Alert;
import flash.events.MouseEvent;
import flash.events.Event;
public function init(e:Event):void {
p1.addEventListener(MouseEvent.MOUSE_DOWN,showAlert);
tw1.addEventListener(MouseEvent.MOUSE_DOWN,showAlert);
}
public function showAlert(e:Event):void {
Alert.show(e.currentTarget + "\n" + e.eventPhase);
e.stopImmediatePropagation();
}