Skip navigation
Currently Being Moderated

RadioButton tab Index

Oct 10, 2011 11:42 PM

Hi,

 

     I would like to know how to set the tabIndex for the RadioButton of a same group.

 

Regards,

Kamesh

 
Replies
  • kglad
    62,147 posts
    Jul 21, 2002
    Currently Being Moderated
    Oct 11, 2011 6:38 AM   in reply to A.kameshwaran

    assign instance names and tabIndex properties.

     
    |
    Mark as:
  • kglad
    62,147 posts
    Jul 21, 2002
    Currently Being Moderated
    Oct 11, 2011 9:10 AM   in reply to A.kameshwaran

    if you're testing in the flash test environment, disable keyboard shortcuts.

     
    |
    Mark as:
  • kglad
    62,147 posts
    Jul 21, 2002
    Currently Being Moderated
    Oct 12, 2011 8:07 AM   in reply to A.kameshwaran

    assign your first radiobutton a tab index (eg, firstTI) and assign an invisible button (eg, btn) the next tab index (firstTI+1), then if your radiobuttons have instance names rb1,rb2 etc, you can use:

     

    var tl:MovieClip = this;

    var index:Number=0;

    rb1.tabIndex=firstTI;

    btn.tabIndex=firstTI+1;

     

    var lo:Object = new Object();

    lo.onSetFocus = function(oF, nF) {

        if(nF._name=="btn"){

            index=(index+1)%yourradiobutton.number;

            Selection.setFocus(tl["rb"+(index+firstTI)]);

        }

    };

    Selection.addListener(lo);

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points