Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/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
Apache flex Flex数据绑定向下钻取阵列_Apache Flex_Flash_Actionscript 3_Actionscript_Air - Fatal编程技术网

Apache flex Flex数据绑定向下钻取阵列

Apache flex Flex数据绑定向下钻取阵列,apache-flex,flash,actionscript-3,actionscript,air,Apache Flex,Flash,Actionscript 3,Actionscript,Air,BindUtils.bindProperty函数的帮助页: 有这样的说法: 例如,要绑定属性host.a.b.c,请将该方法调用为:bindProperty(host,[“a”,“b”,“c”],…) 但是如果我需要绑定到host.a.b[2].c怎么办?如何做到这一点?深入到对象时,通常会出现绑定问题,至少在大多数正常绑定情况下是这样 不确定这是否是你想要的,但是: [Bindable] public var myObject = a.b[2]; 稍后在代码中: <myComp m

BindUtils.bindProperty函数的帮助页:

有这样的说法:

例如,要绑定属性host.a.b.c,请将该方法调用为:bindProperty(host,[“a”,“b”,“c”],…)


但是如果我需要绑定到host.a.b[2].c怎么办?如何做到这一点?

深入到对象时,通常会出现绑定问题,至少在大多数正常绑定情况下是这样

不确定这是否是你想要的,但是:

[Bindable] public var myObject = a.b[2]; 
稍后在代码中:

<myComp myValue="{myObject.c}" />


<>但是,我认为绑定到数组的特定元素是非常不寻常的。如果你能扩展你想做的事情;也许我们可以为您指出一个不同的方向。

事实证明,flex让我这样做: bindProperty(主机,[“a”、“b”、“2”、“c”],…)

哈札