![]() ![]() | |
Flash Player 6.0.79。
Flash MX 2004。
listInstance.setPropertiesAt(index,styleObj)
index 一个大于零且小于 List.length 的数字,它指明要更改的项目的索引。
styleObj 一个对象,它枚举要设置的属性和值。
无。
方法;将 styleObj 参数指定的属性应用到 index 参数指定的项目。受支持的属性为 icon 和 backgroundColor。
以下范例会将第四个项目更改为黑色,并为它指定一个图标:
myList.setPropertiesAt(3, {backgroundColor:0x000000, icon:"file"});
![]() ![]() | |