User Guide
722 Chapter 2: ActionScript Language Reference
status_txt.htmlText = "<b>setFocus triggered</b>";
status_txt.htmlText += "<textformat tabStops='[20,80]'>";
status_txt.htmlText += " \toldFocus:\t"+oldFocus;
status_txt.htmlText += " \tnewFocus:\t"+newFocus;
status_txt.htmlText += " \tgetFocus:\t"+Selection.getFocus();
status_txt.htmlText += "</textformat>";
};
Selection.addListener(someListener);
See also
Selection.addListener(), Selection.setFocus()