Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 02-26-2004, 04:28 AM   #1
sobe1977
Registered User
 
Join Date: Dec 2003
Posts: 6
Question HELP!! tabEnable tabIndex flash form tab order problem

I made a form in flash and I am having a problem getting the tab order to work using tabEnable and tabIndex. I have the form in a m.c. symbol, and the code for the tabEnable and tabIndex in the main stage (I have tried putting the code inside the mc, but that does not work either). Here is the code:

fname2.tabEnabled=true;
fname2.tabIndex=1;
mname2.tabEnabled=true;
mname2.tabIndex=2;
lname2.tabEnabled=true;
lname2.tabIndex=3;
addressb.tabEnabled=true;
addressb.tabIndex=4;
hareacode2.tabEnabled=true;
hareacode2.tabIndex=5;
hphone2.tabEnabled=true;
hphone2.tabIndex=6;
address2b.tabEnabled=true;
address2b.tabIndex=7;
careacode2.tabEnabled=true;
careacode2.tabIndex=8;
cphone2.tabEnabled=true;
cphone2.tabIndex=9;
city2.tabEnabled=true;
city2.tabIndex=10;
fareacode2.tabEnabled=true;
fareacode2.tabIndex=11;
fphone2.tabEnabled=true;
fphone2.tabIndex=12;
state2.tabEnabled=true;
state2.tabIndex=13;
lnamount2.tabEnabled=true;
lnamount2.tabIndex=14;
zip2.tabEnabled=true;
zip2.tabIndex=15;
lncompany2.tabEnabled=true;
lncompany2.tabIndex=16;
email2.tabEnabled=true;
email2.tabIndex=17;
intrate2.tabEnabled=true;
intrate2.tabIndex=18;
referred2.tabEnabled=true;
referred2.tabIndex=19;
lnterm2.tabEnabled=true;
lnterm2.tabIndex=20;
comments2.tabEnabled=true;
comments2.tabIndex=21;
send.tabEnabled=true;
send.tabIndex=22;
clear.tabEnabled=true;
clear.tabIndex=23;
logobutton.tabEnabled=false;
home.tabEnabled=false;
contact.tabEnabled=false;

I would appreciate any feedback or assistance you can give me regarding this code. Take a look at the .fla and let me know if you figure it out. I am fairly new to flash, so sometimes I get stuck and it drives me nuts!!

Thanks for your time.
Attached Files
File Type: zip tabindexexample.zip (30.3 KB, 477 views)
sobe1977 is offline   Reply With Quote
Old 02-26-2004, 06:06 AM   #2
ge_flash
Registered User
 
Join Date: Jan 2004
Location: germany,europe
Posts: 117
Default

you have forgotten name the instance.
Attached Files
File Type: zip tabindexexample2.zip (13.8 KB, 702 views)
ge_flash is offline   Reply With Quote
Old 02-26-2004, 06:35 AM   #3
squeelia
oldnewbie groupie
 
Join Date: Jan 2003
Location: Australia
Posts: 48
Default

Hi,

actually it seems that the problem is the size of the field. If you change the small fields (which are 36px) to 100px, your cursor will appear in the box.

I take it your problem was that the cursor was not appearing in some of the fields?

squeelia is offline   Reply With Quote
Old 02-26-2004, 06:47 AM   #4
retrotron
thinking is design
 
retrotron's Avatar
 
Join Date: Apr 2003
Location: UK
Posts: 1,292
Default

Yeah, the answer seems to be given already. Two further thoughts, fyi:

1. When you create a symbol and then drag it onto the stage, that creates an instance of the symbol in the movie. In order to manipulate that instance with actionscript, you have to give it an instance name (name an instance by selecting it and typing in an instance name in the Properties panel).

It's also helpful to trace your instance names just to be sure they are defined:
Code:
trace(fname2);
If you get 'undefined' traced to the output window, then you know the instance isn't getting defined somewhere along the way (in which case, obviously it needs to be defined).

2. When tabbing, sometimes the cursor will be blinking in a field, but it doesn't seem to respond to some or all of your keyboard typing. In such cases, try clicking your mouse in the field and trying to type something again. Other similar and odd things occasionally happen in such situations, so be aware that your code may be working right after all.

Last edited by retrotron; 02-26-2004 at 08:04 PM.
retrotron is offline   Reply With Quote
Old 02-26-2004, 01:46 PM   #5
sobe1977
Registered User
 
Join Date: Dec 2003
Posts: 6
Default

Thank you for all your assistance!! It finally works. I really appreciate your help. That thing was driving me crazy!
sobe1977 is offline   Reply With Quote
Old 02-29-2004, 06:51 PM   #6
sobe1977
Registered User
 
Join Date: Dec 2003
Posts: 6
Angry Still having problems!!! AARRGGHH!

Thanks again for all of your help. However, I am still having issues with this form. I got it to work in the simplified .fla that I posted by using your suggestions. However, when I use the exact same idea in the actual original file, it just doesn’t work. I can’t figure out why and I don’t know what else to do. I’d appreciate it if you could take a quick look at the full .fla file (attached) and see if there is something that I’m missing. Thanks again for your assistance, it is very much appreciated.
sobe1977 is offline   Reply With Quote
Old 03-01-2004, 12:57 AM   #7
squeelia
oldnewbie groupie
 
Join Date: Jan 2003
Location: Australia
Posts: 48
Default

Did you forget to attach??

squeelia is offline   Reply With Quote
Old 03-01-2004, 03:45 AM   #8
retrotron
thinking is design
 
retrotron's Avatar
 
Join Date: Apr 2003
Location: UK
Posts: 1,292
Default

sobe1977 seems to be having problems attaching the .zip. Not sure why, it works fine for me. In any case, I've attached the file here.
Attached Files
File Type: zip tchsite-final4.zip (396.5 KB, 620 views)
retrotron is offline   Reply With Quote
Old 03-02-2004, 12:17 PM   #9
sobe1977
Registered User
 
Join Date: Dec 2003
Posts: 6
Default Thanks for attaching

Thanks for attaching the file. I don't know what the problem was on my end over here. I appreciate any feedback on getting this tab thing working.
sobe1977 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:51 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.