Change Flash tab settings

I am trying to add some screen reader accessibility to a Flash application and I am facing a sticky dot. The order for tabs through elements is set by the tabIndex property of these elements. The difficulty is that the list of tabs built from them seems constant, but the content of the application is dynamic (built from xml, contains pop-ups and dialogs). Is there a way to update / rebuild the list of tabs? I am ready to go for an extreme period and try crazy hacks to do this job, so any suggestions are good.

+6
flash actionscript-3 tab-ordering
source share
2 answers

you set the tabIndex element values ​​to be edited anytime you want

so that they are the same for childIndex

for (var i:int=0;i<container.numChildren;++i) { container.getChildAt(i).tabIndex = i; //=i or anything you want } 

Following work for me

 iButton1.tabIndex = 1; iButton2.tabIndex = 2; iButton3.tabIndex = 3; iButton1.tabEnabled = true; iButton2.tabEnabled = true; iButton3.tabEnabled = true; function fnClick (pME:MouseEvent):void { iButton1.tabIndex = 3; iButton2.tabIndex = 2; iButton3.tabIndex = 1; } iButton3.addEventListener(MouseEvent.CLICK, fnClick); 

you can download the fla sample here http://matrixoft.infunity.com/agents/calvin/flash/tab.rar

press the third button and it will change the order of the tabs. You may need "Control-> Disable keyboard shortcuts" when you ctrl-enter to test fla

+4
source share

I am compiling with Flash Player 11.4. Switching the TextField property of tabEnabled is fine, but I found that it does not work for SimpleButtons (they do not turn on again when setting tabEnabled back to true). For this, I use this:

 private function setPanelOneTabIndices() { aButton1.tabIndex = 1; aButton2.tabIndex = 2; aButton3.tabIndex = 3; bButton1.tabIndex = 0; bButton2.tabIndex = 0; bButton3.tabIndex = 0; } private function setPanelTwoTabIndices() { aButton1.tabIndex = 0; aButton2.tabIndex = 0; aButton3.tabIndex = 0; bButton1.tabIndex = 1; bButton2.tabIndex = 2; bButton3.tabIndex = 3; } 
+2
source share

All Articles