actionscript Q
- Started
- Last post
- 3 Responses
- cuke426
Hey, I have a form in flash, I can't get 2 things to work:
1)The setFocus won't work when the page comes up...
2)the tabIndex isn't working I put them in the order I would like them(code is below);I am creating this in MX but it's Flash5 content...could that be a problem...? Thanks.
Selection.setFocus(name);
name.tabIndex = 1;
from.tabIndex = 2;
address.tabIndex = 3;
city.tabIndex = 4;
state.tabIndex = 5;
zip.tabIndex = 6;
phone1.tabIndex = 7;
phone2.tabIndex = 8;
- cuke4260
my question was getting too far down the list..
- joshdura0
try this:
Selection.setFocus("_level0.name...
stop();// sets tab order down the page of text fields
on (keyPress "") {
if (Selection.getFocus() == "_level0.name") {
Selection.setFocus("_level0.emai...
} else if (Selection.getFocus() == "_level0.email") {
Selection.setFocus("_level0.comm...
} else if (Selection.getFocus() == "_level0.comments") {
Selection.setFocus("_level0.name...
}
}name your fields, etc as shown above, or change this script...blah
- cuke4260
Thanks man! Love your site - That's cool you have a ton of open-source stuff