Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




No Tabbing After SetFocus



I have a form where I place the cursor in the first dynamic text field using

Selection.setFocus(nameField);

This works fine, except that hitting the tab key will not move the cursor to the next dynamic text field (in this case, companyField).

I tried

companyField.tabIndex = 1;

and

companyField.tabIndex = 1;

but neither works.

Is there a way to use the setFocus statement and still enable tabbing?

Thanks.



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 10-11-2004, 03:54 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

SetFocus And Tabbing
Hello all,

I am using flash mx professional 2004.

I have a screen that has two input text boxes, one named myTextfName and the other named myTextlName, as well as two button components, named Add user and Cancel. When the screen is loaded I want the cursor/focus to show up in the myTextfName input box and when I select the tab button I want focus to go to the next text input box, then to the Add user button. Anyone have a good solution for this. I have followed along with the help panel suggestions but nothing works for me.

Thank you,

No Tabbing After SetFocus
I have a form where I place the cursor in the first dynamic text field using

Selection.setFocus(nameField);

This works fine, except that hitting the tab key will not move the cursor to the next dynamic text field (in this case, companyField).

I tried

companyField.tabIndex = 1;

and

companyField.tabIndex = 1;

but neither works.

Is there a way to use the setFocus statement and still enable tabbing?

Thanks.

Selection.setFocus Tabbing Problem
Hi ,

I have a bunch of movieclips, each has a single input text box inside it and I use the Selection.setFocus
as follows, see code below

This works fine when I test it inside flash, however when I test the tabbing in the html page inside my browser
both firefox and safari the cursor is placed in the correct input box, however hitting the tab key does not
change the selection at all, the cursor remains inside the first input text and does not shift at all?

I am a bit stumped why this works inside flash but not inside the browser,

thanks in advance :)









Attach Code

revolutionary_mc.my_text.tabIndex = 1;
simultaneously_mc.my_text.tabIndex = 2;
converse_mc.my_text.tabIndex = 3;
conversational_mc.my_text.tabIndex = 4;
phenomenal_mc.my_text.tabIndex = 5;
phenomenally_mc.my_text.tabIndex = 6;
dynamic_mc.my_text.tabIndex = 7;
dynamically_mc.my_text.tabIndex = 8;
speciality_mc.my_text.tabIndex = 9;
specialise_mc.my_text.tabIndex = 10;
specially_mc.my_text.tabIndex = 11;
tradition_mc.my_text.tabIndex = 12;
traditionally_mc.my_text.tabIndex = 13;
Selection.setFocus(revolutionary_mc.my_text);

Selection.setFocus() FocusManager.setFocus()
Why do I have a focusManager included in my movie by default? Does it come from the components TextInput, Label, Button etc...? Second I cannot set focus to any components by using the focusManager or the Selection.setFocus() methods. Can anyone point me in the right direction. This is driving me nuts.

Tabbing
on my site i have a form with 3 fields for users to fill out and contact me. How can i make it so that they can tab between the fields instead of having to click each of them to type in them?

Tabbing
Is there any way to enable tabbing within a dynamic-input text field within flash??? (ie As Tab in word etc.. operates)

Kind thanks for any help
Cylon

Tabbing
I have a movie clip on my main time line that contains form elements. I have the tab order set within that movie clip. The only thing is that it will only tab correctly(at all) when i have clicked into one of the text fields. I have tried putting setFocus in that movie clip and in the main time line, no luck with eather. What do i have to do to get the tab and the focus to set right?

Tabbing?
Anyone know how to change the order that you tab through things. Hmmm...not sure if I'm explaining myself very well. I've got a form that the user fills in but when I tab to get to the next box it skips a couple. Is there a way of changing the order that it tabs through?

Cheers

Tabbing
I'm having a problem with MX 2004. I'm trying to make it so users can press tab to move through the different buttons on my application, the code I'm using is,

_root.tab1_btn.tabindex = 1;
_root.tab2_btn.tabindex = 2;
_root.tab3_btn.tabindex = 3;

And so on. It seems to work okay until I add an interaction element into the movie, such as a drag and drop, or fill in the blank, these seem to completely disable the tabbing. Is there anything that can be done to prevent this, or any way to work around it?

Any help would be greatly appreciated.

Tabbing
I am having a two problems with my form.
you may view it on www.cliftonfirst.com and click on reservations.
Firstly, it works perfectly fine 80% of the time. The problem is that sometimes when the fields are filled out, the email that comes back to me comes back like this
Name:=
Surname:=
Email:=
Re-type email:=
Telephone number:=
Date of Arrival:=
Date of Departure:=
Any special requests:=
the second problem is that when you use the tab button, it goes off to the navigation bar.

Tabbing With AS
You know how when you hit tab and it moves the cursor to the next field and that field highlites in green?

Is it possible to manually do that with ActionScript.

I have a bunch of fields...one of them is email, if the email is bunk I want it to highlite green like it does when you tab to it so the user knows it is a bunk field.

Couldnt find anything in the AS help guide in flash on this.

Thanks

How Do You Turn Of Tabbing?
Hello,

I am trying to turn off the tabbing feature in flash. I understand that _focusrect turns of the tab highlighting feature but I want tabbing off altogether. How is this done?

Tabbing Through A Form
I am trying to make my contact form on my site so that the user can tab-through. I found a tutorial and followed it to a T, but it isn't working. Basically, I have an invisible button that is placed off of the screen so that the user can't see it, but it has all of the actions for the tab, which are:

on (keyPress "<Tab>") {
if (Selection.getFocus() == "_level0.Name") {
Selection.setFocus("_level0.Company");
} else if (Selection.getFocus() == "_level0.Company") {
Selection.setFocus("_level0.Title");
} else if (Selection.getFocus() == "_level0.Title") {
Selection.setFocus("_level0.Street");
} else if (Selection.getFocus() == "_level0.Street") {
Selection.setFocus("_level0.City");
} else if (Selection.getFocus() == "_level0.City") {
Selection.setFocus("_level0.State");
} else if (Selection.getFocus() == "_level0.State") {
Selection.setFocus("_level0.Zip");
} else if (Selection.getFocus() == "_level0.Zip") {
Selection.setFocus("_level0.Phone");
} else if (Selection.getFocus() == "_level0.Phone") {
Selection.setFocus("_level0.Email");
} else if (Selection.getFocus() == "_level0.Email") {
Selection.setFocus("_level0.Comments");
} else if (Selection.getFocus() == "_level0.Comments") {
Selection.setFocus("_level0.field1");
}
}

Can anyone see what I'm doing wrong, or have a better way to do this?

Tabbing Issue
Ok I have a bunch of textfields and a few combo Boxes to tab through.
I found this code on LINK
Ok I have a swf called contact.swf. Then I have all my textfields inside a mc called "rp". Then on the main Timeline of theis swf I have this code.

Code:

tabArray = [rp.phone, rp.email, rp.field1, rp.field2, rp.field3, rp.field4, rp.field5, rp.field6, rp.field7, rp.dressBox, rp.subjectBox, rp.field8];
Selection.setFocus(tabArray[0]);
_root.onKeyDown = function() {
Selection.setFocus(tabArray[i=++i%tabArray.length]);
};
Now from another swf, which is my main swf, I load the contact.swf into holder.image, which are movieclips. When I play my movie it all loads and looks great but my tabbing is not working. Can someone tell me if my scope is off or my tabbing code is off?
Thanks.

Tabbing Through A Form....
I'm creating a form in Flash for the first time, and I need to know how to make the TAB function work properly...the form is in a movie clip, and right now, it tabs from Name to Address then the next tab takes you to a button on the main movie...where can I set the order I want?

I'm in Flash 5...

Thanks

Julia

Tabbing Problem
I have an mc which contains a label (static text field), and an input text field. I then build an mc with a number of these inside it, using the attachMovie method. However I can't find a way of setting the tabIndex property of the input text fields that will work.

Does anyone have any ideas whats going on, and what I can do about it?

Cheers

Mat

Yellow TABBING Box
Why does a yellow box appear around all the live buttons on screen when I use the TAB key whilst viewing my movie in a browser? And, how do I get rid of it?

ComboBox Tabbing
I have a combo box and many text fields that make up a form. I can tab through all the text fields and eventually tab into the combobox, but I cannot tab off the combobox into the next textfiled??? any Ideas and what I should do to fix this?

Tabbing Through Forms
yo, bo, ho and so.....
Im trying to build a form at the moment. usual stuff : name, address, email. a few ticky boxes - you get the idea. In fact ive built it, but as a default it tabs through the boxes from left to right and then down (as you'ld read a page). Is there anyway of tabbing down in columns, or even getting it to tab to the place of your choice? Any help or pointers would be wicked ... like is there an ascii reference to the tab key that i could use... i dunno,
thanks loads,
duncan

Tabbing In Flash 5
just had a response for flash mx, but for some rubbish reason i need it to be flash 5 (sorry everyone)
so what was it.....
Im trying to build a form at the moment. usual stuff : name, address, email. a few ticky boxes - you get the idea. In fact ive built it, but as a default it tabs through the boxes from left to right and then down (as you'ld read a page). Is there anyway of tabbing down in columns, or even getting it to tab to the place of your choice? Any help or pointers would be wicked ... like is there an ascii reference to the tab key that i could use... i dunno,
thanks loads,
DUNCAN

Tabbing Forms
I have a contact form in Flash. When I check it out it tabs in the wrong order and the cursor even goes to a button, where it stops. I figure there's a way to do it, but can't find it. Less wine, perhaps?

Advanced Tabbing
right, we use the tab index alot at work, and have a few minor bugs.

we have this slight issue. I hope the following makes sense:

we have tabbed onto a button (which as a index of 2 - for example)
we press enter on it
the actions for this button is to clear all tabs, and set up a new bunch to tab through (dont worry about how thats done, not the point of this post)

so we have a new tabIndex set up for Flash to tab through.

we press TAB

flash goes to the button with a tabIndex = 3.

Is there a way to send flash back to tabIndex = 1, rather than continuing where it left off?

any help great appreciated.

below is how we do are tabbing, might be useful to someone:

function initabInd() {
for (x=0; x<tabArray.length; x++) {
tracer(tabArray[x]);
tabArray[x].tabEnabled = true;
tabArray[x].tabIndex = x;
}
}
function endtabInd() {
lengthArray = tabArray.length;
for (x=0; x<lengthArray; x++) {
tabArray[x].tabEnabled = false;
}
}
function cleartabInd() {
lengthArray = tabArray.length;
for (x=0; x<lengthArray; x++) {
tabArray[x].pop();
}
}

Tabbing Order
I have a couple of input fields for username and password in my file and if I want to tab to password from username there appears a yellow box around one of my navigation buttons. Does anyone know how to turn this off or change the tabbing order so it will tab to password from username and not highlight any other buttons?

Thanks.

Tabbing Problems
Hi.

I cant seem to get any tabbing through my movie at all. I want to eventually control the order (with tab index or actionscript) and I know how to do this (firstName.tabIndex=1 etc) but at the moment nothing is tabbing ??? I just want to tab between my movieclips and also between elements within on large movieclip.

Are there any settings I need to check?

I can post up my .fla if anyone has time to have a quick look.

Thanks for your help.

Simon

Tabbing Through Form
i've got this electronic form that needs to be filled out. i've got it set up so you can just tab through the input fields, but when it comes to a drop down, you can't tab past.

is there a setting that will allow a user to tab to the comboBox, select the appropriate value then tab to the next input?

Tabbing And Components (again) ...
Hi,

I have a flash application that has a couple of combo box components and a couple of text fields.

Trying to tab between my text fields doesn't work, even though they are all tab enabled and have tab indexes.

The reason for this, I have recently found out, is due to the combo box component - it breaks the tabbing.

The workaround for this is to include the following line (after the first frame in my movie):

_level0.focusManager.enabled = false;

This works, HOWEVER, as soon as you choose something from the combo box, the tabbing is broken again ???

Any anyone assist with what is going on here and if there is a fix.

Thanks.

[F8] Form Tabbing
I have created a form using text fields mainly but there are 2 combo boxes. Everytime I introduce the combo boxes into the project the tabbing from one text box to another stops working.

Is there some special code or what needs to be done in order for this code to work correctly?

[CS3] Tabbing Problem
Hi

So I'm dealing in Actionscript 2.0.

I've made a button that launches a "window component" window. The default tab navigation works on the launch buttons but not on the window component's close button.

Here's the script:


Code:
import mx.managers.PopUpManager;
import mx.containers.Window;

this.qual_btn.onPress=function(){

var myTW = PopUpManager.createPopUp(_root, Window, true, {closeButton:true, title:"Quantitative"});
myTW.setSize(300, 400);
myTW.title = "Formula"
myTW.contentPath = "quan";
myTW.move(0, 0);
windowListener = new Object();
windowListener.click = function(evt) {
_root.myTW.deletePopUp();
};
myTW.addEventListener("click", windowListener);
}
Any insight is appreciated!

Tabbing Systems
So i am a designer really. working in motion graphics and my friend asked me to put together a website for them. ont he front page i want to put somthing that acts like the tabs system on this website...

http://www.dpadmagazine.com/

i dont have to change them. However my flash programming experince does not go much beyond programing a button.

Anyone go any starting points as an idea?

Thanks alot

Adam

[CS3] Tabbing Issue
I'm building a 508-accessible site for a client (It's training, actually, but whatever), and I'm having some trouble with tabbing. I have no problems with reading order, keyboard shortcuts, or anything like that. However, I do have a small problem with tabbing.

Specifically, when I tab to a button (The button's "Over" state is triggered), and press ENTER to activate it, that button may be activated...or it may be another button. Does anyone know what might cause/fix this? I've gone around and around with it, and it doesn't seem to make a lot of sense.

Thanks for any replies.

Tabbing And Components (again) ...
Hi,

I have a flash application that has a couple of combo box components and a couple of text fields.

Trying to tab between my text fields doesn't work, even though they are all tab enabled and have tab indexes.

The reason for this, I have recently found out, is due to the combo box component - it breaks the tabbing.

The workaround for this is to include the following line (after the first frame in my movie):

_level0.focusManager.enabled = false;

This works, HOWEVER, as soon as you choose something from the combo box, the tabbing is broken again ???

Any anyone assist with what is going on here and if there is a fix.

Thanks.

Tabbing Issue
There seems to be a conflict between using a component and tabbing within a SWF embedded inside a HTML page. The issue being that the tabbing cycle gets trapped within the SWF so that the user is unable to continue the tabbing in the HTML page itself. The component (ComboBox in this case) is inside the library but is not being used on stage. Once the component is deleted, then the tabbing is allowed to come out of the SWF and into the HTML.

How can we use components and allow users to tab? Is there a work-around?

User environment being Windows XP, Internet Explorer 7, the SWF published in version 7.

Also, the tabbing cycle works fine first time round, but when the focus returns to the SWF, it skips the supposedly next active button and goes to the one after. It seems as if the Flash still thinks the last focused button is still the currently focused button so that when the focus leaves the HTML page and enters the SWF, it skips the last tabbed Flash button. My workaround is to create dummy buttons in the first and last tabbing order so that these are the buttons that are skipped. IS there a neater solution?

Thanks in advance.

Tabbing A Combo Box
I have a form that contains input text boxes and a few combo boxes. When I use the tab on the keyboard to navigate the form it doesn't work well with the combo boxes? For instance, tab won't go past the combo box to the next input box. I have all of the tab indexes set up appropriately, but still can't get this to work. I've seen this done correctly before. So, I know it can be fixed.

Automatic Tabbing
I have an application (.exe) that I may want to turn off the automatic tabbing (yellow box). Is there a way to do this - I would like to apply this to the entire .swf file when loaded.

Thanks.

Rob Childress

Automatic Tabbing
I've created a Flash application (.exe file) and I just noticed when you hit the TAB key, a yellow highlight appears and cycles through all the buttons on the screen. Anyway to alter this or turn it off ?

Thanks.

Rob Childress

Tabbing Highlight
Is there a way in AS 2.0 or maybe AS 3.0 to suppress the "highlight" that occurs when tabbing throught a page ?

Thanks.

Rob Childress

Tabbing Across Containers
I have a number of input textfields, each contained within a different sprite. Those sprites are further nested within other sprites and then a ScrollPane. Tabbing only works for the buttons that are on the page, not the textfields. I tried setting tabIndex to a unique ascending int for each, but that doesn't work.

I have tested in the IDE with Control/Disable Keyboard Shortcuts

I have tested in IE and FF, nothing works.

The API doc for InteractiveObject says "The custom tab ordering includes only objects that have tabIndex properties". Yet the buttons without tabIndex set are in the tab loop, while the (visible) textfields with tabIndex set are not in the tab loop.

If I click within any textfield, to give it focus, then hit the tab key, the focus goes back to the buttons and not to any textfield. The doc also says that "The custom tab ordering that the tabIndex property defines is flat" so I'd thinkthagt nesting doesn't matter. How do I get tabbing to work? I've looked at FocusManager but don't see a solution there.

(My code has many as files and so I can't post it.)

Button Tabbing
hey, im trying to set tab index to my buttons in this movie.. ive been told that to do this the button text needs to be dynamic or input txt, which works when i tab throught the buttons however when i try to use the mouse on this button, the cursor changes to a 'text select' cursor oppose to the little hand.. which means i cant select it with the mouse...??

anyone know how to get around this?

cheers.

Tabbing In Flash
hey, i was just wondering if anyone knew if it was possible to set a tab index for movie clips with images inside or does it only work with dynamic text? Cheers.

Tabbing Issue
I created a form using as3 and set the tabIndex for all the fields liek this:


ActionScript Code:
</p>
<p>cusname.tabIndex = 1;</p>
<p>cuscompany.tabIndex = 2;</p>
<p>cusaddress.tabIndex = 3;</p>
<p>cuscity.tabIndex = 4;</p>
<p>cusstate.tabIndex = 5;</p>
<p>cuszipcode.tabIndex = 6;</p>
<p>cusphone.tabIndex = 7;</p>
<p>cusfax.tabIndex = 8;</p>
<p>cusemail.tabIndex = 9;</p>
<p>cuspreferred.tabIndex = 10;</p>
<p>projectname.tabIndex = 11;</p>
<p>projectduedate.tabIndex = 12;</p>
<p>projectspecs.tabIndex = 13;</p>
<p>selectpic.tabIndex = 14;</p>
<p>upnews.tabIndex = 15;</p>



It tabs fine until it comes to the cusstate which is a ComboBox. If i manually move it to cuszipcode it works fine again until it comes to cuspreferred which is also a ComboBox. Moving it ahead it tabs as normal until it reches selectpic which is a Button.

Is there something special I need to do for these types of fields?

508 Tabbing And TextAreas
ok, so one developer made a spaghetti mess of and app, that got handed over to me to make 508 compliant, now im the type of guy that shuns components cause i prefer to build everything from scratch to keep better control.
however ever this app is full of text components and when i try to tab around it will only jump back and forth from text components.
how the heck can i disable the tabbing on the text components so that my structured tab order isn't sabotaged?

to save time and guess i have already tried (say the components name=txt)

txt.enabled = false;
txt.tabEnabled = false;
txt.focusEnabled = false;

if some one out there could help me out with this that's like at least +10 points

Tabbing Order
Hi can anyone help me?

I am having trouble with the tabbing order on my buttons.

//set tabbing ordering
topNav.tabEnabled= false;
home_btn.tabIndex = 1;
sub_btn.tabIndex = 2;
spk_btn.tabIndex = 3;
help_btn.tabIndex = 4;
close_btn.tabIndex = 5;
next_btn.tabIndex = 6;

Spk_btn won't tab right because the navigation bar is a movieclip and that button is a movieclip with a button inside. Can anyone help me please?

Is This A Bug? Tabbing Through Fields ...
Please tell me if this is just poor design of my part or a handycap in FLASH ...

Have small movie with 12 layers.  On layer 2 (quotes) I've set a group of input fields split in two columns.  On the first column I have 13 single line fields and on right column, I have one multiline field.

On layer 7, I have a horizontal menu with 7 buttons.  

As I access form via button with action 'gotoandplay', the form display ... it's all good.  I click on first field and type something in and tab expecting to go to next field.  Well, I jump to horizontal menu two buttons after chosen button to access form page.  Two tabs later, and I am back to next form field.

Why is this?  Why am I jumping to menu buttons instead of going down the column on input fields?

Should I switch layer position?  Am I missing a simple but very important step?

Please help ....  8-(

Thank you all in advance!

Regards;


josel

If you have the knowledge, consult and educate those who need it! - Jose Lerebours

Tabbing In An MX Form?
Evenin/Mornin all,

Im trying to get input fields on a flash MX form to tab through in the right order when the user hits the <Tab> key. Now Ive found a tutorial that says use an invisible button with this code on:


ActionScript Code:
on (keyPress "<Tab>") {
    if (Selection.getFocus() == "_level0.field1") {
        Selection.setFocus("_level0.field2");
    } else if (Selection.getFocus() == "_level0.field2") {
        Selection.setFocus("_level0.field3");
    } else if (Selection.getFocus() == "_level0.field3") {
        Selection.setFocus("_level0.field4");
    } else if (Selection.getFocus() == "_level0.field4") {
        Selection.setFocus("_level0.field1");
    }
}


Which works a treat when the movie is saved as version 5 but doesn't when saved as version 7?


Ive also tried this route:


ActionScript Code:
name_txt.tabEnabled= true;
name_txt.tabIndex = 1;
email_txt.tabEnabled = true;
email_txt.tabIndex = 2;
comments_txt.tabEnabled = true;
comments_txt.tabIndex = 3;
// etc.
 


Version 7 wasnt having any of this either.

Any help appreciated!

thx!

Tabbing Through Text Fields...
Hi,
I'm working on a project in which I have to work with textfields, and I'd like to know how you control the oreder in which the user tabs through the text fields. I'll explain more clearly...when the user selects the first text field (First name), and then hits tab, I want the cursor to move to the "Last name" text field, and not any other.
Is there anyway to do this?
Thanks,
-Laz.

Tabbing Order In Forms
Does anybody know how to control the tabbing order in forms?

i.e. tabindex="1" in HTML.

Deafult Tabbing Order
There is a default tabbing order for my flash movie. Does anyone know how to change it.

Programmatic Tabbing And Accessibility
Hi,

I'm wondering, because I work as developer for a major university, whether or not there is a way to programmatically send the cursor out of a Flash document when it reaches the last item in the tab index. I hope I am phrasing my question correctly. The behavior I am observing now is that you can tab *in* to a Flash movie, but not out. This little quirk is a major stumbling block in our initiative to include more Flash apps in our output here. Has anyone dealt with this before?
Perhaps there are links or tutorials or references you know of that may be valuable to this end.

Thanks,

ed

Tabbing Between Text Fields
i have a swf loading into _level10, and i need to be able to tab between the text fields, but when i try, the buttons on level0 highlight instead of the next text field in level10. is there a way to fix this?

Thanks...
Tania

Copyright © 2005-08 www.BigResource.com, All rights reserved