I am using the function like this
txt.addEventListener(TextEvent.TEXT_INPUT, setText);
function setText (e:TextEvent):void {
e.currentTarget.text=e.currentTarget.text.toUpperCase();
}
when i enter first text that text not changing to uppercase from second letter it is changing to uppercase.
can anyone tell me what is the problem with this function
North America
Europe, Middle East and Africa
Asia Pacific