1 Reply Latest reply on Jun 18, 2010 3:47 AM by rHemanth

    Function name question

    celebritymusic Level 1

      Hey guys

       

      I call a function whenever an input field has something typed in it.

       

      Then coding trace(evt.target.name); displays the name of the input text field. In this instance, the filed is named "Happy"

       

      After that, I'd like to call a function errorHappy(evt); - this all works fine.

       

      Just wondering if it's possible to call the function using something like:

       

      ["error"+(evt.target.name)](evt);