Blanking a text box on click!

Hello!

I’m trying to blank out an input field when the user clicks on it… I tried making the text field a movie clip with the following code:

[AS]onClipEvent(mouseDown){
searchItem = “”;
}

onClipEvent(keyDown){
if (Key.getCode() == Key.ENTER){
_root.query(“quickSearch”, searchItem);
}
}[/AS]

… and it works, but the problem is it works when you click anywhere. Is there a way I can do this only when the user clicks in the input field?

Thanks in advance!! :hat:

lrhb