Mega Code Archive
Using event object to make event handlers more generic
import mx.controls.Alert;
public function clickHandler(clickEvent:Event):void{
Alert.show("Event Type:" + clickEvent.type);
Alert.show("came from:" + clickEvent.currentTarget.id);
}