Welcome to Dream.In.Code
Getting Help is Easy!

Join 109,491 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,191 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Tabbing Form Fields In Flash

 
Reply to this topicStart new topic

Tabbing Form Fields In Flash

Matt Kasper
post 20 Jul, 2002 - 06:42 PM
Post #1


D.I.C Regular

***
Joined: 12 Jan, 2002
Posts: 473

Ok, I have this flash form setup, but when I goto tab from field to field, it trys to tab to buttons or other stuff on the page such as the url bar and junk. I was wondering if flash can somehow capture the tabs and move it to the next field in the form rather then to a button or something. No idea how to do this. Thanks in advance.

Matt Kasper
User is offlineProfile CardPM

Go to the top of the page


Josh
post 21 Jul, 2002 - 06:01 AM
Post #2


D.I.C Lover

*****
Joined: 27 Aug, 2001
Posts: 1,215

on (keyPress "<Tab>") {
if (Selection.getFocus() == "_level0.name") {
Selection.setFocus("_level0.email");
} else if (Selection.getFocus() == "_level0.email") {
Selection.setFocus("_level0.comments");
} else if (Selection.getFocus() == "_level0.comments") {
Selection.setFocus("_level0.name");
}
}

just set it up for each of your fields...
User is offlineProfile CardPM

Go to the top of the page

fyrestorm
post 21 Jul, 2002 - 11:32 AM
Post #3


D.I.C Lover

Group Icon
Joined: 4 Apr, 2002
Posts: 3,079



Dream Kudos: 228
My Contributions


that's a good thing to know, i'm glad someone asked that question smile.gif
User is offlineProfile CardPM

Go to the top of the page

Matt Kasper
post 21 Jul, 2002 - 02:54 PM
Post #4


D.I.C Regular

***
Joined: 12 Jan, 2002
Posts: 473

Wow, thanks Josh, I didnt even think it could be done. Ill try that out asap. Thanks!!!

Matt Kasper
User is offlineProfile CardPM

Go to the top of the page

Matt Kasper
post 21 Jul, 2002 - 05:34 PM
Post #5


D.I.C Regular

***
Joined: 12 Jan, 2002
Posts: 473

Ok, everythings working good, but, when i go and test it with IE and push tab, it keeps tabbing to the damn address bar and wont tab off of it. What do I do? I could either have it open with a window that doesnt have that damn url bar, that might work, or if you know some other trick, that would be great.

Matt Kasper
User is offlineProfile CardPM

Go to the top of the page

cfasnacht
post 22 Jul, 2002 - 07:54 AM
Post #6


D.I.C Head

**
Joined: 17 Jun, 2002
Posts: 57

Matt,

I think you need to make the user set the focus onto the flash movie and not to just the browser or the web page but the flash object in the web page.

To solve that you could simply make the user click a continue button or anything else just to have the cursor focused onto the flash movie.

Make sense?
User is offlineProfile CardPM

Go to the top of the page

Matt Kasper
post 22 Jul, 2002 - 12:17 PM
Post #7


D.I.C Regular

***
Joined: 12 Jan, 2002
Posts: 473

Actually, what i found out is that the tabbing doesnt work if you havethe flash set to a transparent window, i put it to window and it worked, I have no idea if thats the way it is or soemthin else, but meh.

Matt Kasper
User is offlineProfile CardPM

Go to the top of the page

Mazzboy
post 12 Jun, 2008 - 12:49 PM
Post #8


New D.I.C Head

*
Joined: 12 Jun, 2008
Posts: 1

QUOTE(Matt Kasper @ 20 Jul, 2002 - 06:42 PM) *

Ok, I have this flash form setup, but when I goto tab from field to field, it trys to tab to buttons or other stuff on the page such as the url bar and junk. I was wondering if flash can somehow capture the tabs and move it to the next field in the form rather then to a button or something. No idea how to do this. Thanks in advance.

Matt Kasper



I can see this question has been up for quite a long time now but I'm sure there are many people like myself looking for the answer to this, and the SIMPLEST way to sort your tabbing is this:

CODE


textField1.tabIndex = 1;
textField2.tabIndex = 2;
textField3.tabIndex = 3;
textField4.tabIndex = 4;
textField5.tabIndex = 5;



Where textFieldx is the text field you want to tab to.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 9/7/08 02:12PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month