devi farlo sulla proprietà del campo di testo, text

if(_root.campoinput.text.length<1)