Text Selected onFocus

Hi,

I have 2 input text fields in my movie…each has prepopulated text, giving directions to the user. i.e. the first input field is for their first name, and is populated with the text “First name here…”

I want it so that when the user clicks in the first name text field, the text is automatically selected, so that they can easily hit delete and get rid of it all, or even just start typing and have their content replace the initial text.

This is what I am trying…

nameTxt.onSetFocus = function(){
    nameTxt.setSelection(0,nameTxt.length);
    trace("focus is set on name "+nameTxt.length);
}

The trace is there just to prove that is actually recognizing that the focus is set on that field… its just not selecting the text.

Any thoughts?

Thanks!
b.