Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flash as3从第2行开始切换到下一个表单字段_Flash_Actionscript 3 - Fatal编程技术网

Flash as3从第2行开始切换到下一个表单字段

Flash as3从第2行开始切换到下一个表单字段,flash,actionscript-3,Flash,Actionscript 3,我在flash中创建了一个简单的表单,我将其设置为可以从一个字段切换到下一个字段。问题是当我用tab键指向其中一个字段(多行文本框)时,它从该字段的第二行开始。如果我单击文本字段,它将转到第1行 你知道我该怎么补救吗 代码非常简单: _styleLibForm.tabChildren=true _styleLibForm.first_name.tabIndex = 1; _styleLibForm.first_name.tabEnabled = true;

我在flash中创建了一个简单的表单,我将其设置为可以从一个字段切换到下一个字段。问题是当我用tab键指向其中一个字段(多行文本框)时,它从该字段的第二行开始。如果我单击文本字段,它将转到第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;


您是否尝试将最低的
tabIndex=2

我遇到的问题不是它不制表,而是它在制表到多行字段时转到错误的行。它不是从文本字段顶部的第1行开始,而是从第2行开始。@pfunc:您是如何创建它的?您是否有可能在它被聚焦时按enter键?它是在flash ide中创建的,不,我没有按enter键。@pfunc:您是否尝试将它从舞台上移除并按代码创建?