TextInput toUpperCase

Hi,

I looked everywhere and couldn’t find. Is there a way to convert the display of the TextInput to upper case?

Like this:

type h ===> displays H
type e ===> displays HE
type l ===> displays HEL
type l ===> displays HELL
type o ===> displays HELLO

I tried using the following, it traces but it doesn’t display :frowning:

Thanks!!



keyListener = new Object();
keyListener.onKeyUp = function() {
    //
    var myText = mainTXT.text;
    myText.toUpperCase();
trace(myText.toUpperCase());
}