How to tell when a text field is empty in as3
I want to add an event listene开发者_如何学Pythonr that listens for whenever the text field goes blank (IE all text is deleted). Thank you :)
txtField.addEventListener(Event.CHANGE,onChange);
function onChange(e:Event)
{
if(e.currentTarget.length==0)
{
trace("empty")
}
}
精彩评论