Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/12.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 闪光错误#1010_Flash - Fatal编程技术网

Flash 闪光错误#1010

Flash 闪光错误#1010,flash,Flash,当我在输出面板中运行我的flash文件(测试它)时,我得到以下错误 TypeError:Error#1010:术语未定义且没有属性 我读到一些地方,这是因为其中一个变量被设置为null。在查看我的代码后,我发现下面这行代码导致了这个输出 arrSelectedIndex[i] = -1; 这稍后将用作一组单选按钮中的选定索引 我的问题是,将所选索引设置为-1会是一个问题吗 谢谢RadioButtonGroup采用的是selectedValue属性,而不是selectedIndex。因此,您不能

当我在输出面板中运行我的flash文件(测试它)时,我得到以下错误

TypeError:Error#1010:术语未定义且没有属性

我读到一些地方,这是因为其中一个变量被设置为null。在查看我的代码后,我发现下面这行代码导致了这个输出

arrSelectedIndex[i] = -1;
这稍后将用作一组单选按钮中的选定索引

我的问题是,将所选索引设置为-1会是一个问题吗


谢谢

RadioButtonGroup采用的是
selectedValue
属性,而不是
selectedIndex
。因此,您不能将RBG的selectedIndex设置为任何值,而不仅仅是-1


您可以使用方法
RadioButtonGroup来检索RadioButtonGroup中radioButton的值。getRadioButtonAt(索引:int)
听起来像是
arrSelectedIndex
在此行为空。追溯到应该分配的位置。如果跟踪语句不足以找出错误,请使用调试器