Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/6.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.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
Actionscript 3 如何为标签提供一组数组元素。flex 4_Actionscript 3_Flex4 - Fatal编程技术网

Actionscript 3 如何为标签提供一组数组元素。flex 4

Actionscript 3 如何为标签提供一组数组元素。flex 4,actionscript-3,flex4,Actionscript 3,Flex4,在Hslider中,我们使用标签=“[0,1,2]”。如何通过提供数组名称来提供数组。 前任: 在AS3中,我们定义了数组 arr:Array=新数组[0,1,2,3,4] 如果我写的话 Labels=“{arr}” 我无法在滑块上看到arr值。如果在MXML中执行此操作,则需要将数组绑定到HSlider的labels属性,如下所示: labels="{arr}" 另外,请指定arr变量是否标记为[Bindable]很抱歉,我将其标记为labels=“{arr}”。。我要换支票。

在Hslider中,我们使用标签=“[0,1,2]”。如何通过提供数组名称来提供数组。 前任: 在AS3中,我们定义了数组 arr:Array=新数组[0,1,2,3,4]

如果我写的话 Labels=“{arr}”


我无法在滑块上看到arr值。

如果在MXML中执行此操作,则需要将数组绑定到HSlider的labels属性,如下所示:

labels="{arr}"
另外,请指定
arr
变量是否标记为
[Bindable]

很抱歉,我将其标记为labels=“{arr}”。。我要换支票。