6 Replies Latest reply on Oct 21, 2013 3:50 PM by Ron Colmen

    Selection.getFocus()

    Ron Colmen Level 2

      I need to be able to detect if any of the text fields are not in use. TFs resides in root.main_mc.tf_mc.tf1 - up to root.main_mc.tf_mc.tf40

       

      Is this the way to go?

      if(Selection.getFocus().indexOf("tf")==-1){

      //

      }

       

      I just did a trace

      trace(Selection.getFocus().indexOf("tf"))

      // output was

      27

      27

      27

      27...