开发者

as3 tabbing to next form field starts on 2nd line

I have a simple form I created in flash and I set it up so you can tab from one field to the next. The problem is when I tab to one of the fields, a multiline textbox, it starts on the second line of that field. If I click on the textfield it goes to the 1st line.

ANy idea how I can remedy this?

The code is pretty simple:

_styleLibForm.tabChildren = true;

_styleLibForm.first_name.tabIndex = 1;

                _styleLibForm.first_name.tabEnabled = true;
                _styleLibForm.first_name.focusRect = true;

                _styleLibForm.city.tabIndex = 2;
                _styleLibForm.city.tabEnabled = true;
                _styleLibForm.city.focusRect = true;

                _styleLibForm.description.tab开发者_开发知识库Index = 3;
                _styleLibForm.description.tabEnabled = true;
                _styleLibForm.description.focusRect = true;

                _styleLibForm.email.tabIndex = 4;
                _styleLibForm.email.tabEnabled = true;
                _styleLibForm.email.focusRect = true;


this might help
and did you try making your lowest tabIndex = 2?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜