all groups > flash data integration > december 2004 >
You're in the

flash data integration

group:

input text?


input text? Sibling Rivalry
12/15/2004 9:58:26 PM
flash data integration: I have inserted a data base page into my web site. I am using the input text
option to have users input their information into my data base. When I test
the page and I use the tab key to switch to the next entry text box the cursor
moves in a random order. How do I control the order in which one can move
around the text boxes. Also, whne one hs input all of their information and
am not sure how to have that information sent to me via email. I am using
Flash MX.
Re: input text? srinth
12/16/2004 12:26:58 PM
Hi,

use tabindex method

instancename.tabIndex

eg:
inputxt1.tabIndex = 1;
inputxt2.tabIndex = 2;
inputxt3.tabIndex = 3;
inputxt4.tabIndex = 4;



Re: input text? Sibling Rivalry
12/16/2004 4:16:33 PM
Thanks for the help. I am still having trouble though. I am using Flash MX
and when I use the tabindex method I input all of my information then when I go
to apply the information the program asks me for a target.

My code looks like this as of now.

city.createTextField("this is my first test field object
text",1,50,50,200,100);
inputxt1.lastname.tabindex=1;
inputxt2.middle.tabindex=2;
inputxt3.firstname.tabindex=3;
inputxt4.street.tabindex=4;
inputxt5.apt.tabindex=5;
inputxt6.city.tabindex=6;
inputxt7.state.tabindex=7;
inputxt8.zip.tabindex=8;
inputxt9.relationship.tabindex=9;

Re: input text? Sibling Rivalry
12/16/2004 4:18:10 PM
I would like to tab from street to apt but the computer keeps defaulting from
street to city.

My index feild goes as so

last name M first name
street apt
city state zip
relationship.

One last thing. When I finally am able to have someone input their
information into my text field how do I have that information sent to me via
email?

Re: input text? Pilipo
12/16/2004 4:23:10 PM
Re: input text? NSurveyor
12/21/2004 12:10:43 PM
If you read the first post carefully, notice the last two words: Flash MX. (not
that is not Flash 04!) - But yes, correct capitalization is good to have...

3 Problems:
1) inputxt# should be replaced with the instance name of your textfield.
2) tabIndex has a 0-based index. So, the first tabIndex should be 0.
3) tabIndex won't work unless tanEnabled is true for each textfield.

To remedy:

Use this actionscript instead:

city.createTextField("this is my first test field object
text",1,50,50,200,100);
lastname.tabEnabled = true;
middle.tabEnabled = true;
firstname.tabEnabled = true;
street.tabEnabled = true;
apt.tabEnabled = true;
city.tabEnabled = true;
state.tabEnabled = true;
zip.tabEnabled = true;
relationship.tabEnabled = true;
lastname.tabIndex=0;
middle.tabIndex=1;
firstname.tabIndex=2;
street.tabIndex=3;
apt.tabIndex=4;
city.tabIndex=5;
state.tabIndex=6;
zip.tabIndex=7;
relationship.tabIndex=8;

AddThis Social Bookmark Button