as3 tabbing到下一个表单字段从第2行开始

时间:2011-01-22 14:59:53

标签: flash actionscript-3

我有一个我在flash中创建的简单表单,我进行了设置,因此您可以从一个字段切换到下一个字段。问题是,当我选中其中一个字段时,一个多行文本框,它从该字段的第二行开始。如果我点击文本字段,它会转到第1行。

我知道如何解决这个问题?

代码非常简单:

_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.tabIndex = 3;
                _styleLibForm.description.tabEnabled = true;
                _styleLibForm.description.focusRect = true;

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

1 个答案:

答案 0 :(得分:0)

this might help
你是否尝试过最低tabIndex = 2

相关问题