PDA

View Full Version : tabIndex issues.


paulreitz
02-29-2008, 12:00 AM
The situation:
I'm using Flash CS3 and Air to build an app with ten textfields arranged in a square. textfield #0 is towards the upper right, and they go in sequence from there in a clockwise direction. This is set up to simulate the physical location of some devices. I need to tab through them, starting at 0 and going around to 9.

The problem is if I don't set a tabIndex, they tab from upper left to lower right (including the three buttons I put in the middle of the screen). If I set the tabIndex on all of the textfields, then I can only tab to #0 and I can't tab to any other textfield. right after I set the tabIndex, I trace out the tabIndex out for all of the textfields and they are set to -1 for some reason.

Any help would be appreciated :)

paulreitz
02-29-2008, 05:43 PM
OK, I figured this out. It was my own mistake. When I set up the text fields I would set a property or whatever on one, copy that line nine times then change the number on each line. When I set the tab indexes, I forgot to change the numbers, so I was setting the tab index of the first text field ten times. Once I found that and fixed it,m it worked fine :)