Listener problem...
Hi there!
I need to control the visibility of a button depending of the length of any of three differents Text Fields.
I wrote this:
var allNewFldsListener:Object = new Object();
allNewFldsListener.onChanged = function(newEmailFld:TextField, newFirstAltEmailFld:TextField, newSecondAltEmailFld:TextField) {
if (newEmailFld.length > 8 || newFirstAltEmailFld.length > 8 || newSecondAltEmailFld.length > 😎 {
verifBtn._visible = true;
}
else {
verifBtn._visible = false;
}
};
addListener(allNewFldsListener);
The listener is supposed to make verifBtn visible if any of the three text fields has a length of more than eight characters.
But it doesn't...
Would you please tell me why?
Many thanks in advance for your explanations/precisions/corrections!