Clear a textfield when you select it

Does anyone know hoe to clear a textfield when you click on it. I know how to do this in mx, but I now need to know how to do it in 5 or 4 if possible.

I hope someone can help me with this.

onClipEvent(mouseUp){
if (eval(Selection.getFocus()) == textVar) textVar= ā€œā€;
}

Thanx, but where do I put the code, I tried everything, but nothing works.

Please note that Iā€™m a rookie with flash 5