2 Replies Latest reply: Sep 19, 2011 11:06 AM by egyhots1 RSS

    tabindex + highlight

    gabi_poa Community Member

      Hi there.


      I actually have two questions:


      • tabIndex is based on what? See this code

      var cre = _root.attachMovie("creditos", "creditos", counter);


      var sai = _root.attachMovie("sair", "sair", counter);


      var jog = _root.attachMovie("jogar", "jogar", counter);






      But it always start from "cre" button.


      • can I highlight a button? i want to start the swf with that button on the "over" state, so if the user presses enter it would trigger its click function. PS. I set the focusrect to false.


      Thanks in advance

        • 1. Re: tabindex + highlight
          chall3ng3r Community Member



          You can use Selection.setFocus("path") function for this. For example,


          I have found that tabIndex doesn't work correctly in FL, specifically for text fields. However, I managed to make my own focusmanager using Selection.setFocus function.


          Hope it helps,


          // chall3ng3r //

          • 2. Re: tabindex + highlight
            egyhots1 Community Member

            I have several input textfields that are TAB-enabled. The problem I'm having is that when TAB is pressed, it highlights the textfield with an obnoxious yellow/green border. Does anybody know how to get rid of this? My AS is below:


            //enable tabbing

            user_input.tabEnabled = true;

            pword_input.tabEnabled = true;

            pword_confirm.tabEnabled = true;


            user_input.tabIndex = 1;

            pword_input.tabIndex = 2;

            pword_confirm.tabIndex = 3;



            //disable rect

            user_input._focusrect = false;

            pword_input._focusrect = false;

            pword_confirm._focusrect = false;


            Thanks in advance for any help/hints you can give me

            ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ ـــــــــــــــــــــــــــــــــــــــــــــــــــ