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 += "&nbsp;\toldFocus:\t"+oldFocus;
status_txt.htmlText += "&nbsp;\tnewFocus:\t"+newFocus;
status_txt.htmlText += "&nbsp;\tgetFocus:\t"+Selection.getFocus();
status_txt.htmlText += "</textformat>";
};
Selection.addListener(someListener);
See also
Selection.addListener(), Selection.setFocus()