2 Replies Latest reply on Sep 26, 2006 5:08 PM by Fel_911

    Radio button and tabindex

    Fel_911 Level 1
      Hi !
      I got like 10 textinput component and then 3 radio button (of the same group). I want to know if there is a way to acces the radio button with the tab key. I tabindexed all my textinput like :

      tname.tabIndex = 1;
      tcity.tabindex=2;
      ...

      Thx guys !
        • 1. Re: Radio button and tabindex
          Level 7
          Fel_911" <webforumsuser@macromedia.com> wrote in message
          news:efbrub$8rn$1@forums.macromedia.com...
          > Hi !
          > I got like 10 textinput component and then 3 radio button (of the same
          > group).
          > I want to know if there is a way to acces the radio button with the tab
          > key. I
          > tabindexed all my textinput like :
          >
          > tname.tabIndex = 1;
          > tcity.tabindex=2;
          > ...
          >
          > Thx guys !
          >

          I did this myself actually a while back. My initial need for a special
          class was because I had RadioButtons of the same group being place on a
          MovieClip dynamically, then a bunch of these movie clips were created
          dynamically. The problem was that I only wanted one radio button to be
          selectable, even thought the RadioButton groups were on different
          MovieClips. So, I wrote a RadioButtonController class that only allowed one
          of the buttons to be selected.

          In doing this I added tababilty much the same as you are using below... a
          different tab index for each radio button, and the controller simply moves
          back and forth between them.

          I might be able to dig up the code somewhere if you are interested.


          • 2. Re: Radio button and tabindex
            Fel_911 Level 1
            Yeah, if you can find it. But don't get you much trouble for it, I can live without it.

            ..still it would be cool :-)