7 Replies Latest reply on Aug 15, 2009 7:52 AM by kglad

    getfocus instance name

    jiggy1965 Level 1
      Selection.setFocus (my_textfield);
      trace (this[Selection.getFocus()]._name);

       

      When I give a textfield focus and just use trace (Selection.getFocus()) I get _level0.my_textfield. I want it to trace the instance name of the texfield which gets focus, my_textfield. So I tried above code, but that traces nothing. How do I make it trace my_textfield?