Reset TabIndex
I wanna clear my tabIndex and set it again. Like this;
ActionScript Code: for (var i = 0; i<3; i++) { this["t1_"+i+"_txt"].tabIndex = i;}function newTab() { //reset here for (var i = 0; i<3; i++) { this["t2_"+i+"_txt"].tabIndex = i; }}my_btn.onRelease=function(){ newTab();} Is this posibble?
Ultrashock Forums > Flash > ActionScript
Posted on: 2006-06-20
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
TabIndex?
I can’t make it stop going to the two ball and other buttons when I press tab?
The instance name for the name input box is one
The instance name for the e-mail input box is two
The instance name for the Your Message input box is three
The var name for the name input box is FirstName
The var name for the e-mail input box is Email
The var name for the Your Message input box is ToComments
This is the link to the site it is under contact and the button is located in the upper right hand corner
www.gatzkecues.com
This is the code I am trying. I my be placing it in the wrong place.
one.tabIndex = 1;
two.tabIndex = 2;
three.tabIndex = 3;
Any ideas?
Thanks
JOptionPane
TabIndex Help
code:
usernametx.tabIndex = 0;// text field
emailtx.tabIndex = 1;// text field
ps1tx.tabIndex = 2;// text field
ps2tx.tabIndex = 3;// text field
ent_but.tabIndex=4;// button
wwwtx.tabIndex = 5;// // text field
Is it possible to have mixed objects within the tab index?
I have tried but have been able to get it to work the way i want.
I have put together a little fla, hopfully someone can shed some light.
cheers
Paul
TabIndex Help
Hi guys.
i hope someone can help me with this before i waste 2 hrs figurering that it cant be done.
I have 2 buttons and 1 mc on my stage
in side my mc i have a 3 textfields and 2 buttons
all are given relevent instance names.
My question is: Is it possible to tab through the 2 buttons in the root then from there tab into the mc and through the fields that are in there?
i am getting nowhere fast.
i can set it to run through the mc without any problems but my client has requested that the tabbing should start from the 2 buttons on the root then into the mc then coming back out again to go full circle.
Can this be done??? after spending the past 30 mins tinkering about i cant seem to get it to work.
This code is on the root timeline
code:
//buttons on root
helpMe.tabIndex = 0;
rBut.tabIndex = 1;
//Buttons in mc
form1.tx1.tabIndex = 2;
form1.tx2.tabIndex = 3;
form1.tx3.tabIndex = 4;
form1.bBut.tabIndex = 5;
form1.nBut.tabIndex = 6;
Thanks for any help
Paul
TabIndex Help
Hi guys.
i hope someone can help me with this before i waste 2 hrs figurering that it cant be done.
I have 2 buttons and 1 mc on my stage
in side my mc i have a 3 textfields and 2 buttons
all are given relevent instance names.
My question is: Is it possible to tab through the 2 buttons in the root then from there tab into the mc and through the fields that are in there?
i am getting nowhere fast.
i can set it to run through the mc without any problems but my client has requested that the tabbing should start from the 2 buttons on the root then into the mc then coming back out again to go full circle.
Can this be done??? after spending the past 30 mins tinkering about i cant seem to get it to work.
This code is on the root timeline
ActionScript Code:
//buttons on root
helpMe.tabIndex = 0;
rBut.tabIndex = 1;
//Buttons in mc
form1.tx1.tabIndex = 2;
form1.tx2.tabIndex = 3;
form1.tx3.tabIndex = 4;
form1.bBut.tabIndex = 5;
form1.nBut.tabIndex = 6;
Thanks for any help
Paul
Tabindex
In ActionScript 3.0 I have a 3 textboxes one FristName one Last name and a submit button. I load a external SWF that was written in actionscript 2.0 that has a specific form that has old Animiation in it. I load that external swf into the actioinScript 3 file but the problem is when i click on the form field it will not focus on any form items the tabindex is stuck on the FirstName in the 3 textboxes in actionscript 3. How do i over come this so that if i select FirstName in the actionscript 3 file it will select or if I select a text box in the actionscript 2 file so that the index will focus properly
TabIndex Help
I have a form that Im trying to use tabIndex on text field flash components. when testing it locally using the following actionscript on frame 1: Also Im wondering if it has somthing to do with the fact that Im using a Flash COMPONENT and not just a regular text field?
ActionScript Code:
txt_field1.tabIndex = 1;
txt_field2.tabIndex = 2;
etc...
it works fine, but this movie is being loaded into another movie, so I try..
ActionScript Code:
this.txt_field1.tabIndex = 1;
etc..
Still doesnt work? Any ideas?
TabIndex
Hi all,
i have a couple o imput text fields in a form on the login frame and gave it tabindex with the accessibility window like this:
userName = 1
userPass = 2
submitbtn = 3
this works fine, however in a couple of frames latter i have some other imput texts on register new user frame and giving the tab order doesn't works here don't know why. Tried like this:
userName = 1
userPass = 2
userPass2 = 3
userEmail = 4
submitbtn = 5
and like this:
userName = 4
userPass = 5
userPass2 = 6
userEmail = 7
submitbtn = 8
in this frame the tabindex doesn't work.
TabIndex
I have some text fields and I'm trying to set the tab index of each like so:
_root.mytextfield.tabIndex(1);
but when I am tabbing through my form I get those stupid yellow boxes and it doesn't acknowledge the tab order I have specified.
What am I doing wrong
TabIndex Help
Hi guys.
i hope someone can help me with this before i waste 2 hrs figurering that it cant be done.
I have 2 buttons and 1 mc on my stage
in side my mc i have a 3 textfields and 2 buttons
all are given relevent instance names.
My question is: Is it possible to tab through the 2 buttons in the root then from there tab into the mc and through the fields that are in there?
i am getting nowhere fast.
i can set it to run through the mc without any problems but my client has requested that the tabbing should start from the 2 buttons on the root then into the mc then coming back out again to go full circle.
Can this be done??? after spending the past 30 mins tinkering about i cant seem to get it to work.
This code is on the root timeline
ActionScript Code:
//buttons on roothelpMe.tabIndex = 0;rBut.tabIndex = 1;//Buttons in mcform1.tx1.tabIndex = 2;form1.tx2.tabIndex = 3;form1.tx3.tabIndex = 4;form1.bBut.tabIndex = 5;form1.nBut.tabIndex = 6;
Thanks for any help
Paul
Tabindex
i have one blank movie clip (instance name : row)
now i am creating textInput and numericStepper component by .createObject() in this "row" movieclip.
and again make duplicate of movieclip "row", and creating textInput box and numericStepper in that moviceclip. and finally i am making 10 duplication each with textInput box.
so i want to set tabIndex such way that the cursor should pass from one by one textInput.
so plz help me
thanks in advance
[F8 - AS2] TabIndex
Ok this was a wierd surprise for me today. Been working with Flash 8 Pro for the past month now.
So I'm trying to set up this simple email form and trying to assign tabIndexes to the input fields. Well low and behold there is something called an Accessiblity Panel that overides any tabIndex that you would assign an input field.
Here's how I've always done it:
nameField.tabIndex = 1;
emailField.tabIndex = 2;
commentField.tabIndex = 3;
Well now with Flash 8 Pro you have to do this to input text fields placed on the stage:
You could use the Accessibility Panel to set the Tab index with "Make object accessible" checked and then assign a number in the "Tab index" field.
or
You uncheck "Make object accessible" - then code the input fields this way:
this.nameField.tabIndex = 1;
this.emailField.tabIndex = 2;
this.commentField.tabIndex = 3;
Now I'm sure there are some really cool things that have been added with this Accessiblity Panel but man it freaked me out when the debugger says "There is no property with the name 'tabIndex'."
What happens when the Input field is place at run time? You can't use the Accessiblity Panel for that. HHHMMM......
TabIndex Help
ActionScript Code:
usernametx.tabIndex = 0;// text field
emailtx.tabIndex = 1;// text field
ps1tx.tabIndex = 2;// text field
ps2tx.tabIndex = 3;// text field
ent_but.tabIndex=4;// button
wwwtx.tabIndex = 5;// // text field
Is it possible to have mixed objects within the tab index?
I have tried but have been able to get it to work the way i want.
cheers
Paul
TabIndex For Forms
Hello;
I have a form in a MC and i want to direct the tab order of the fields. Where do i put the code and how should this code be written. Currently the tabing includes the buttons I have for navigation. Is there a way around this?
My actionScript sucks. I can understand it, but I can't conceive it. any help is much appreciated.
TextField.tabIndex
Hey guys,
I am trying to set the tab order for a screen in my movie. I know you can you the "TextField.tabIndex", but I have no idea how. Any help? Thanks.
TabEnabled & TabIndex?
does anyone know how to set up a tab Index for input textfields??
the actionscript dictionary only tells what it does, but not how it is scripted.
Thanks Folks
Ken
TabEnabled & TabIndex?
does anyone know how to set up a tab Index for input textfields?? the actionscript dictionary only tells what it is, not how to script it. im sure its pretty simple, but im clueless.
thanks folks
ken
TabIndex Problem
I have a form and need to be able to TAB to the next input field. I've tried to set the tabIndex property for each field but it's still not working. I have the following script in the same frame as my input fields:
Selection.setFocus(firstname);
firstname.tabIndex = 1;
lastname.tabIndex =2;
company.tabIndex = 3;
title.tabIndex = 4;
address.tabIndex = 5;
city.tabIndex = 6;
state.tabIndex = 7;
zipcode.tabIndex = 8;
country.tabIndex = 9;
phone.tabIndex = 10;
fax.tabIndex = 11;
email.tabIndex = 12;
Am I missing something?
thanks for your help!
TabIndex Problem
Hey guys,
Quick, easy one hopefully
I can't get my tabIndex to work. I have a simple email form page and it has first and last name on the same line (two different input boxes) and address underneath. It tabs from the first name field down to the address field and then back up to the last name field. I put this info into an empty frame in my main movie:
First_Name.tabIndex = 1;
Last_Name.tabIndex = 2;
Address_Line_1.tabIndex = 3;
Address_Line_2.tabIndex = 4;
Email.tabIndex = 5;
Footage.tabIndex = 6;
and the terms to the left are definitely the instance names.. not the variable names. And the variable names are different than the instance names.
It still jumps from first name to address line 1.. What am i screwing up.. Im also using tabEnabled=false on some things i dont want it to jump to and thats working great.
Any help would be much appreciated.
TabIndex Problem
Hi - I know somewhat similar questions have been asked but was wondering if anyone could point me in the right direction. Here's my situation:
I have a MovieClip that contains a bunch of other movieclips. These "children" movieclips contain forms (textboxes). No matter what I do it seems that I cannot get the tab order to work properly. I went and created a new flash movie, wrote some code to make the tabIndex work properly and tred to move it into my new flash movie. It didn't work.
I heard that if you do tabIndex in Flash piece that you have to start at 1 and continue for each individual text box (never have multiple tabIndex = 1 in the Flash piece even if they are in seperate movie clips).
Can someone point me to a fix or resource? Thanks!
TabIndex On Buttons
Doe anyone have a working example of say, tabbing through 3 buttons.
I must be missing something here, but I can't seem to get it to work.
thanks, m
HELP TabIndex NOT WORKING
I am trying to get the tabIndex property to work and cannot seem to manage it! Below is the FLA.
http://www.winpath.com/tabindex.fla
I want it to tab through the text fields in the numbered order,
1-2-3-4-5-6-7-8-9-10-11-12
but instead it tabs through like this,
1-2-3-4-7-5-8-6-9-10-11-12
I am setting the tabIndex property of each text box in the first frame but it is not working for some reason.
Any help would be greatly appreciated!!
TabIndex Usage?
Hi, ive got 5 inputfields in a flash-document.
Name Street
First Name Number
City
But using the TAB-Button isnt going like i want it to. Its crisscrossin...
I want it in this order:
Name
First Name
Street
Number
City
Now, ive checked the AS-Reference, and if found that u can use this:
Code:
Textfield.tabIndex
But what more? I'm not the best at understanding that reference...
Greetz
TabIndex Problems
I am having lots of trouble with the tabIndex property. I set the tabIndex for each input field in the order it needs to be for usability, but the Flash player seems to ignore it. The problems are particularly acute when dynamically loaded movie clips and / or scrollPane components are involved. Can anyone give me some tips, and / or point me to some articles or tutorials that will get me up to speed on this issue?
TextField.tabIndex
I have a form with about 10 fields I need people to fill out and be able to tab from one to the other in a specific order. I found this post:
http://www.flashkit.com/board/showth...eld .tabIndex
but it only seems to work when files are published as Flash MX files. I need a solution for this problem that will work in Flash 5.
Anyone have ideas?
Thanks
TabIndex Help Por Favor.
i'm trying to use tabIndex for a few input text boxes. seem to be having to probelms with this.
1. when they have a var name and an instance name, flash places text into the input text boxes showing their position in flash (i.e. _level0.right_mc.varname)
2. the tabIndex won't work in general. i was under the impression if you had tabIndex, tabbing would be restricted to only the items you specifiy . . but this doesn't seem to be working at all for me. part of this problem could be due to the fact i am loading multiple swfs onto my layout . . but couldn't i just put the tabIndex information somewhere which can constrict the tabbing to the fields i want? (all the fields are within one movie btw)
thanks for any help. much appreciated.
> j
TabIndex Problems
Okay, I feel like I am just missing something completely obvious, because I can't find anyone else that has had any problem with this, but the tabIndex property is doing absolutely nothing for me, and I can't figure out why.
I have a Flash MX movie. Publish settings have it exporting in Flash 6 format, so all Flash MX features should work. I am using "publish" and viewing in a browser (rather than "test movie" where some features have been reported not to work), and the browser is latest IE with the latest version of the Flash 6 plugin installed.
I have a sequence that spans 30 frames, which includes a 5-frame intro sequence that plays through and jumps to the five frame "main" segment (where it stops and waits for user input), then when they move on it jumps to the final 5-frame outro sequence and then to the next frameset/section. (There are 5 frame spaces in the timeline after each segment just for visual spacing for easier development.) All screen elements exist for the whole 30 frames.
The tab-able screen elements include 7 input fields (instance names "f1" to "f7", also with variable names assigned), and two buttons (instance names "next" and "back"). The only other elements on the screen are some static text elements and graphics. The default tab order goes f1-f2-f5-f3-f6-f4-f7-back-next, the order I want is f1 through f7 in order, then next, then back. So I put this code on the first frame of the intro sequence:
f1.tabIndex == 1;
f2.tabIndex == 2;
f3.tabIndex == 3;
f4.tabIndex == 4;
f5.tabIndex == 5;
f6.tabIndex == 6;
f7.tabIndex == 7;
next.tabIndex == 8;
back.tabIndex == 9;
This had no effect. So I thought maybe it was losing the tab order when it jumped to the middle frame set, so I copied the same code to the first frame of the middle frame set. No effect.
I then tried adding "_root." to the front of all the instance names, no effect. Tried changing all static text elements to "dynamic," giving them instance names (tt1 - tt3) and including them in the tab order. No effect. Tried copying the tabIndex code to the stop frame at the end of the middle frameset, the actual frame where the user input was happening. No effect.
Is there something glaringly obvious that I'm doing wrong here? Has my crack intake finally reached critical levels? I've been developing/programming in Flash since 97, and I feel like an idiot not being able to figure this out. I feel like this is one of those things where there is some little quirk that you have to make sure and do just a certain way or else Flash just ignores the whole thing...any ideas?
Thanks,
Tommy
TabIndex Question
I was using the tabIndex ActionScript for the first time last night and it works fine, but my question is when it reaches the last object in the index (in this case, a button) and you click on tab again, nothing happens. It doesn't loop back to #1. Should it? Can it?
Here's my script. Pretty basic.
name_txt.tabIndex = 1;
address_txt.tabIndex = 2;
city_txt.tabIndex = 3;
state_txt.tabIndex = 4;
zip_txt.tabIndex = 5;
phone_txt.tabIndex = 6;
fax_txt.tabIndex = 7;
email_txt.tabIndex = 8;
comments_txt.tabIndex = 9;
submit_btn.tabIndex = 10;
TabIndex +loadMovie
hey ,
i have a swf in which i load into the main Movie.
there is a form in this (loaded) swf . i am trying to get the tabIndex to work with no avail .
this is what i have for code/->
Code:
form_mc.instanceName.tabEnabled=true
instanceName.tabIndex=1
instanceName.tabIndex=2
instanceName.tabIndex=3
.
note . the form resides in a mc
thanks !!
TabIndex - Killin Me....
heres one....
I have been using FocusManager and tabIndex to handle tab order in every form I have ever made. ever.
Today - this simple function doesnt seem to love me anymore. I can t get it to work for the life of me. It is causing so much frustration that I have decided to end it all. Goodbye cruel world.
So, before I jump from the 75th floor of my supafly Manhattan studio, taking my PC, my MM certified Actionscript pimp certificate, and my DevNet subscription with me, I would like to see if any one would like to take a swipe at it. I will be over here on the ledge in the mean time, wishing you the best. 8]
//Heres the premise:
comment.tabIndex = 1;
okButton.tabIndex = 2;
//purdy simple no?
//if you have a textfiled or button nested in a MC
//its more like this...
thisMC.comment.tabIndex = 1;
thatMC.okButton.tabIndex = 2;
-now, to save me from the sidewalk, some 800 feet below have a look at this and please tell me I am crazy.
Example html -- Link -
.FLA - DAMN TABINDEX
Actual Project - -Link-
Tabindex, Buttons And AS2.0
Hi,
Have had this problem before and couldnt solve it but i'm facing it again. My flash movie uses as2.0 to use the combobox component, but i need to be able to tab between various buttons, my buttons are normal button movieclips. But the tab does not highlight them, i have included a tabIndex but that only seems to affect things like textfields and button components, not button movieclips.
Is there a way to fix this??
Thanks.
Steven.
Problems With TabIndex
im setting the tabindex of fields in my contact form and it works fine when i test it, but when i view it in the browser its being loaded with loadMovie() from the main swf, and the main swf nav buttons are being focused instead of the fields in the tab index order. why is this??? what can i do?
heres the link: click on contact us (wont work)
http://www.brandlite.com/ecoa
heres is the swf alone (works)
http://www.brandlite.com/ecoa/contact.swf
i appreciate the help
TabIndex From Hell
I`m honestly to scared to ask any more, but just one more time if u dont mind
where do i start to in creating a tabindex, for a simple input form, name, phone, email,etc.
I just so dont know where to begin, what is the first step.
cheers
SetSelection With TabIndex
Does anyone know how I might use the tabIndex to set the selection of an object.
Selection.setSelection(instanceName) obviously doesn't work because it requiers an instance name.
Thanks.
_t
TabIndex Across Levels?
Hi there,
I am experimenting using tabIndex, which at present works fine when the level is run by itself, but when calling it from the main movie it seems to use the tabindex from the main movie itself.
Is this something I have to specify on the mainmovie (level0) rather than a seperate level? If so, is it something that has to specified only once that level has loaded?
Any help in advance appreciated.
Trace TabIndex
Hi
Can anyone explain how i can do a trace on the tabIndex....
code: textfieldArray = ["name", "location", "age"];
for (i=0; i<textfieldArray.length; i++) {
this[textfieldArray[i]].tabIndex = i;
}
onEnterFrame = function () {
if (Key.isDown(Key.TAB)) {
trace(tabIndex);//??????????
}
};
"name", "location"and "age".........are movieclips that are referred to in the textfield array....i need to trace the tabIndex number for each press of the tab key if that makes any sense!
Any thoughts appreciated
Hum
Tabindex Within A Loaded MC
i have a main movie with a tabindex for the menu bar.
menu_bt.tabIndex = 01;
this works great in the main movie
i have a empty mc that loads an swf.
loadMovie("topic01.swf","mc_load");
within this swf are control buttons. i used the accesability window to set the tabindex for this. the tabindex for the play button is 21. i also tried doing
play_bt.tabIndex = 01;
i can not get the tab to work in the loaded swf .
i want the tab to go from the main movie's menu to the play button in the loaded swf.
can anyone please tell me how to do this. i am not very good at flash to please "dumb down" the explaination.
thanks,
dawn
TabIndex Issues
Using the Accessibility manager I set the tab order of some text fields in a movie clip... I truned on view tab order and I can see the numbers next to each text field, but when I run the movie nothing happens!
I alternatively tried this also but to no avail... Is there something I am missing?
_
Code:
root.mc.mc.form_mc.tabChildren=true;
_root.mc.mc.form_mc.focusEnabled=false;
_root.mc.mc.form_mc.FirstName.tabIndex=1;
_root.mc.mc.form_mc.Email.tabIndex=2;
_root.mc.mc.form_mc.Comments.tabIndex=3;
_root.mc.mc.form_mc.FirstName.text="focus";
focusManager.setFocus(_root.mc.mc.form_mc.FirstName);
Issues With TabIndex
hello everybody.
I have do different forms in my stage. Each form is a separate MovieClip, one is the "user log in" with 3 fields and the other is a "registration form".
I indexed the fields from the "registration form" 1-20 per say, but after the tabIndex #20, it goes to the "user log in" form and vice versa.
How can I loop the tabIndex of each form? lets say, when the tabIndex of the "log in" form reaches the last tab, it goes back to it's first tab and not to the first tab of the other form....
Please help.
Thanks in advance
Issue With TabIndex
I have do different forms in my stage. Each form is a separate MovieClip, one is the "user log in" with 3 fields and the other is a "registration form".
I indexed the fields from the "registration form" 1-20 per say, but after the tabIndex #20, it goes to the "user log in" form and vice versa.
How can I loop the tabIndex of each form? lets say, when the tabIndex of the "log in" form reaches the last tab, it goes back to it's first tab and not to the first tab of the other form....
Please help. I have flash 8 & CS3 using AS 2
Thanks in advance
Tabindex Gets Lost
I've got a button with the code:
Code:
Knopje4.onRelease = function() {
Formulier.gotoAndStop(1);
gotoAndStop(4);
};
Frame 4 is the input form which I gave tabindexes so when I press TAB, the buttons aren't selected instead:
Code:
trace ("clicked");
Formulier.naam.tabIndex = 1;
Formulier.email.tabIndex = 2;
Formulier.bericht.tabIndex = 3;
Whenever the Send button of that form is clicked it goes to frame 2 of the form showing the thank you message.
Now whenI press the button with:
Code:
Knopje4.onRelease = function() {
Formulier.gotoAndStop(1);
gotoAndStop(4);
};
It sends the Formulier (input form) movieclip to frame 1 again (showing the input form again, like it should). But then the tabindex is deleted somehow. Because when I press Tab, the buttons are selected again. And to test it: clicked isn't traced a second time, so the trace and tabindex codes are ignored the second time.
What is causing this and how can I fix it?
TabIndex Issue
hey, i have this form with about 6 input boxes . I am setting the tabIndex, but after the last input box, the tab goes to a redraw region on the stage....hmmm.
Code:
stage.focus=first_name;
for(var i=0;i<textBoxes.length;i++)
{
var tb:TextField=TextField(textBoxes[i]);
tb.tabIndex=i+1;
tb.backgroundColor=0xe0cead;
tb.addEventListener(FocusEvent.FOCUS_IN,onfocus);
tb.addEventListener(KeyboardEvent.KEY_UP,keyupevent);
}
TabIndex List?
Is there any way to list all items that are written to the tabIndex? I have a controller movie that loads in several different SWFs that SHOULD all be correctly indexed, but I'm not able to easily check that at runtime. Does anyone know how this might be accomplished?
TabIndex - Getting Current
Hi,
I have a movie where I want to be able to detect the current tab index, and assign that plus one as the tab index of a movieclip.
I am thinking of two ways that might work, first every time tab is pressed store the current tab index (but how do I get the current tab index? is it something like selection.tabIndex?)
The second is to try to get the current tab index just when I want it, but again I don't know how to actually find out what the tab index is at that time.
Any help, suggestions, commiserations welcome!
Thanks,
Andy
Tabindex Stopping At 20.
Hello all,
I have been working on a project that has some 54 input text boxes (it is a form). These text boxes are inside of a movie clip. I have set up the tabindexs on all of the input boxes all the way to 54. I have also given a name to each box (eg. box1=tabindex1 box2=tabindex2). There is also a checkbox button in the movie clip.
The problem is that when I am tabbing through the boxes, after box number 20 the focus does not go to box number 21. I am still able to manually select textbox 20 but if I try tabbing to textbox21 the focus still disappears and textbox21 is still not selected. If I select textbox21 manually and tab from there it works. It seems that the disconnect is the transition from textbox20 to textbox21.
I have no clue where the focus goes and I have tried a couple of things that still did not work.
I have tried using action script instead of using MX2004 Pro's tabindex accessibility option. The action script used tabindex as well.
I have tried shifting the tabindexs so that box20 did not get tabindex 20, and the new selection focus after 20 would still not be 21.
I have tried searching google for countless hours and still nothing has resolved this issue.
The darnedest thing is if I select box 54 and "Shift+Tab" to make the selections go in reverse order ever thing works FINE!! It will go from 54 to 1 with ease, but if I try to tab through everything the focus manager disappears after 20.
I really appreciate any help that can be given.
If anyone knows the answer please, please let me know!
Tabindex Stopping At 20.
Hello all,
I have been working on a project that has some 54 input text boxes (it is a form). These text boxes are inside of a movie clip. I have set up the tabindexs on all of the input boxes all the way to 54. I have also given a name to each box (eg. box1=tabindex1 box2=tabindex2). There is also a checkbox button in the movie clip.
The problem is that when I am tabbing through the boxes, after box number 20 the focus does not go to box number 21. I am still able to manually select textbox 20 but if I try tabbing to textbox21 the focus still disappears and textbox21 is still not selected. If I select textbox21 manually and tab from there it works. It seems that the disconnect is the transition from textbox20 to textbox21.
I have no clue where the focus goes and I have tried a couple of things that still did not work.
I have tried using action script instead of using MX2004 Pro's tabindex accessibility option. The action script used tabindex as well.
I have tried shifting the tabindexs so that box20 did not get tabindex 20, and the new selection focus after 20 would still not be 21.
I have tried searching google for countless hours and still nothing has resolved this issue.
The darnedest thing is if I select box 54 and "Shift+Tab" to make the selections go in reverse order ever thing works FINE!! It will go from 54 to 1 with ease, but if I try to tab through everything the focus manager disappears after 20.
I really appreciate any help that can be given.
If anyone knows the answer please, please let me know!
Problems With TabIndex
I have an movieclip that is created dynamically called mcHolder and records that are added. The array rowarr keeps track of everything as records are added or deleted. The records are made up of 16 text boxes, two of which I am ignoring, the first and last. I created a loop that would run through the array length to give me my record numbers and another loop that would run through the textboxes of each record. I assigned the tabIndex to a variable of ti (tabindex) and increment it, which it does. However, I still cannot tab correctly through the boxes. Nor will it trace tabIndex or the full +_level0.skillB_mc.mcHolder["record"+i].txt_c[z] properly. They both come up as undefined. The text boxes run through as txt_c[z].
Code:
createTabs = function () {
var ti:Number = 0;
var z:Number = 0;
_level0.cBs1Print_btn.tabEnabled = false;
for (i=0; i<rowarr.length; i++)
{
for (z=1; z<15; z++)
{
trace("tabIndex is " +_level0.skillB_mc.mcHolder["record"+i].txt_c[z].tabIndex);
_level0.skillB_mc.mcHolder["record"+i].txt_c[z].tabIndex = ti;
ti++;
_level0.skillB_mc.mcHolder["record"+i].txt_c0.tabEnabled = false;
_level0.skillB_mc.mcHolder["record"+i].txt_no.tabEnabled = false;
_level0.skillB_mc.mcHolder["record"+i].txt_pt.tabEnabled = false;
//trace(_level0.skillB_mc.mcHolder["record"+i]);
//trace("z is "+ z);
//trace("ti is "+ ti);
trace("tabIndex is "+_level0.skillB_mc.mcHolder["record"+i].txt_c[z].tabIndex);
}
}
};
createTabs();
I am at a loss on where to proceed or if the scope of my variables is lost somewhere.
TabIndex Issues
Using the Accessibility manager I set the tab order of some text fields in a movie clip... I truned on view tab order and I can see the numbers next to each text field, but when I run the movie nothing happens!
I alternatively tried this also but to no avail... Is there something I am missing?
_
Code:
root.mc.mc.form_mc.tabChildren=true;
_root.mc.mc.form_mc.focusEnabled=false;
_root.mc.mc.form_mc.FirstName.tabIndex=1;
_root.mc.mc.form_mc.Email.tabIndex=2;
_root.mc.mc.form_mc.Comments.tabIndex=3;
_root.mc.mc.form_mc.FirstName.text="focus";
focusManager.setFocus(_root.mc.mc.form_mc.FirstName);
|