views:

24

answers:

1

I want to add an event listener that listens for whenever the text field goes blank (IE all text is deleted). Thank you :)

+3  A: 
txtField.addEventListener(Event.CHANGE,onChange);

function onChange(e:Event)
{
    if(e.currentTarget.length==0)
    {
        trace("empty")
    }
}
Allan
Thank you very much :)
Patrick Gates