2 Replies Latest reply on Apr 15, 2009 12:51 PM by kglad

    tabIndex vs. ComboBox conflict

    0degreesK

      I started a thread earlier on this, but I can't edit the main thread, so I'm starting a new one because I realize the problem is different.

       

      In a nutshell, I have forms in my SWF.  I set the tabIndex for the items and everything works fine.

       

      Then, I drop a ComboBox component into the movie and the tabIndex stops completely.  If I delete the ComboBox from the stage, the problem remains.  If I remove the ComboBox from the Library, everything works fine again.

       

      Any ideas?  I'd appreciate them because I've found numerous threads throughout the interweb that start just like mine and are never answered.

       

      Thanks in advance.

        • 1. Re: tabIndex vs. ComboBox conflict
          0degreesK Level 1

          I'm not holding-out much hope based on the history of this issue being brought up in the forums.  I've discovered that the problem also has something to do with the fact that the input text fields were children of a movie clip.  So, I was doing this:

           

          ==============================

          // Allow form fields to be tabbable
          mcName.tabChildren = true;
          mcEmail.tabChildren = true;
          mcComments.tabChildren = true;

           

          // Set the tab order
          mcName.txtInput.tabIndex = 1;
          mcEmail.txtInput.tabIndex = 2;
          mcComments.txtInput.tabIndex = 3;

          ==============================

           

          I ended-up deleting the input text fields from the movie clips and placing them in the root of the stage, changing the code to this:

           

          ==============================

          // Set the tab order
          txtName.tabIndex = 1;
          txtEmail.tabIndex = 2;
          txtComments.tabIndex = 3;

          ==============================

           

          Now it works, but I had to do some code to get rid of the annoying lime green halo that wrapped the text fields when they were tabbed to:

           

          ==============================

          txtName.onSetFocus = function() {
               text._focusrect = false;
          };

          ==============================

           

          I was able to achieve the same results here without only minor compromise.  I'd still like to hear about a solution to the original problem, though.

          • 2. Re: tabIndex vs. ComboBox conflict
            kglad Adobe Community Professional & MVP

            i don't see that problem.  here's a fla that shows no problem:

             

            www.kglad.com/Files/tabIndex.fla