Ciao a tutti!!

Sentite questa: ho un componente TextInput che ha come nome d'istanza "campo" e un pulsante con nome d'istanza "bottone".

Perchè se scrivo questo codice:

bottone.enabled = 0;
campo.text.onChanged = function () {
bottone.enabled = 1;
};

non succede niente??

Grazie.