PDA

View Full Version : Text Field 'Focus' for Flash5 form


Bizk
01-07-2001, 12:41 PM
I've got a series of form fields in a flash movie (Not the initial movie that is loaded into the page!) that I wish to be able to tab through. I works perfectly as a stand alone player.
However, when I embed it into html, even if I click in the field I want to use, I cannot tab out of it properly because it tabs to the browser address bar. Also when I tab from there, I get buttons and text fields highlighted in a seemingly illogical, though repeatable (Therefore not at random!) manner.
Obviously I want to be able to tab through the text fields in a controlled and ordered manner, just like it does as a standalone player.
You can see the whole item at http://www.alwaysoncue.com/groundzero
if it is any help.
FYI There is an initial intro movie that loads, which is then replaced by the movie with the forms in it.Has anyone got any ideas, because I've had enough of trying to figure it out myself.
This is also posted on were-here.com forums

dburwell
03-12-2001, 08:27 PM
Have you ever found an answer to this question. I seem to be having the same problem.

Thanks.

edeveloper
03-13-2001, 03:41 AM
thats a known issue with flash. MM offers some type of algorhythm to fix the problem but i've never heard that it works 100%.

Bizk
03-13-2001, 08:10 AM
I ended up using the keyboard based arrow keys!! Not perfect, but at least it works!!!

dburwell
03-13-2001, 01:27 PM
Found this yesterday.

Basically make a new button (I just made a small dot the same color as the background), put it in your movie and apply the following actions to it...

on (keyPress "<Tab>") {
if (Selection.getFocus() == "_level30.Sign_Name") {
Selection.setFocus("_level30.Sign_Street");
} else if (Selection.getFocus() == "_level30.Sign_Street") {
Selection.setFocus("_level30.Sign_City");
} else if (Selection.getFocus() == "_level30.Sign_City") {
Selection.setFocus("_level30.Sign_State");
} else if (Selection.getFocus() == "_level30.Sign_State") {
Selection.setFocus("_level30.Sign_Zip");
} else if (Selection.getFocus() == "_level30.Sign_Zip") {
Selection.setFocus("_level30.Sign_Phone");
} else if (Selection.getFocus() == "_level30.Sign_Phone") {
Selection.setFocus("_level30.Sign_Email");
} else if (Selection.getFocus() == "_level30.Sign_Email") {
Selection.setFocus("_level30.Sign_URL");
} else if (Selection.getFocus() == "_level30.Sign_URL") {
Selection.setFocus("_level30.Sign_Comments");
} else if (Selection.getFocus() == "_level30.Sign_Comments") {
Selection.setFocus("_level30.Sign_Name");
}
}


What it's doing is searching to see what field the cursor is in, then when you hit the TAB key it will go to the next field.

Only thing you should need to change is your variable names.

Hope this helps.