Trouble getting element position

I am trying to get the position of a form element (textInput component) inside a scrollpane… can anyone help with this?


var focusListener = new Object();
	focusListener.onSetFocus = function(oldFocus_txt, newFocus_txt) {
	  trace(newFocus_txt._x);
	  trace(newFocus_txt._y);
	}
	Selection.addListener(focusListener);

it returns the same number for all the elements…

thanks!

EDIT---------------

figured it out:


var focusListenerX = new Object();
	focusListenerX.onSetFocus = function() {
	  trace(_root.focusManager.getFocus()._y);
	}
	Selection.addListener(focusListenerX);