4 Replies Latest reply on Sep 24, 2008 10:41 AM by ntsiii

    Adding focusOut=" " to TextInput generates errors. 

    zakel
      I am trying to add focusOut to a textInput that is created within actionscript.

      I am getting this error: Access of possibly undefined property focusOut through a reference with static type mx.controls:TextInput.

      What am I missing?

      Thanks in advance for helping me learn flex.


      var txtinput1:TextInput = new TextInput;
      txtinput1.width = 430;
      txtinput1.id = x[j].@id;
      txtinput1.focusOut= "performValidation(event)";
      txtinput1.focusEnabled = true;