PDA

View Full Version : tabbing stops in 2.0


honers
04-18-2005, 05:48 AM
I have a script that I wrote in 1.0 and now am trying to adjust it for a swf that I am publishing in 2.0/Flash 7. The only thing that seems to get hung up is the tabbing. Once I publish it in 2.0 I can no longer tab between text fields.

Does anyone know what this could be related to. The text fields on the page all have onSetFocus and onKillFocus handlers attched to them so I am assuming it may be something there, but this script is very long so I don't really know where to start looking for this bug! I am pretty new to 2.0 Syntax and I don't alway know what doesn't work anymore.

Thanks for any help you can provide.

-Kevin

oaker
04-18-2005, 05:56 AM
are you using tabIndex at all, or trying to manually force tabbing using mc.tabEnabled = true?

honers
04-18-2005, 06:44 AM
I have been setting tabEnabled for each text fields as well as assigning a custom index. HOWEVER, here is something I just discovered:

I have posted two similar files, one has two movieclips with text fields inside them and they tabs perfectly. They second file is exactly the same except that there is a scrollPane component loaded in the library. The tabbing does not work in that file. For some reason, if I have a 2.0 component in the library (doesn't even have to be on the stage) all my tabbing ceases to function for any text fields inside movie clips.

There must be a fix for this (I HOPE!), or something I don't know about setting up tabbing properly. Any help on this subject is greatly appreciated!

-Kevin

oaker
04-18-2005, 06:51 PM
Have a look at this method, by putting all the textfields in the same movieclip it works.

honers
04-18-2005, 07:06 PM
Yes. That seems to be the catch, that all the text fields have to be in the same movie clip for tabbing to work (if there is a v 2.0 component in the library). However, that doesn't really work for what I am doing because I need to have the text fields grouped inside movie clips so that I can hide groups of them easily at one time.

I can't imagine there isn't another way to do this because it seems that there are many times that you would hot want to have all the text fields in the same movieclip. I have looked a little bit into the focusManager to see if that is what I need, but I don't totally understand how to use that and whether it will solve my problem.

thanks for the help.

-kevin

honers
04-29-2005, 12:39 AM
I finally figured out this problem. Once there is a component on the stage (or loaded into the library in my case), you then have to set tabChildren and tabEnabled for each movie clip to enable/disable tabbing. You can read here for more info:

http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_18983

-Kevin