Apache flex 列出itemRenderer缓存项
我在mx:list中使用一个itemRenderer,它有许多文本字段和组合,我使用这个itemRenderer编辑数组集合中的项目,arrayCollection中的每个项目都是Action类型,它作为valueObject来自BlazeDS remoting 我的问题是,当我通过此代码向列表数据提供程序(ArrayCollection)添加类型为Action的新项时Apache flex 列出itemRenderer缓存项,apache-flex,caching,itemrenderer,Apache Flex,Caching,Itemrenderer,我在mx:list中使用一个itemRenderer,它有许多文本字段和组合,我使用这个itemRenderer编辑数组集合中的项目,arrayCollection中的每个项目都是Action类型,它作为valueObject来自BlazeDS remoting 我的问题是,当我通过此代码向列表数据提供程序(ArrayCollection)添加类型为Action的新项时 myList.dataProvider.addItem(new Action()); 新项目从其上一个项目获取相同的数据。在
myList.dataProvider.addItem(new Action());
新项目从其上一个项目获取相同的数据。在项目渲染器中,请确保绑定到数据对象,因为这是flex将从要渲染的数据提供程序中设置为当前项目的内容。这将非常简单:
<s:Label text="{data.someLabel}" />
在我看来,您似乎还没有实现itemRenderer来响应dataChange事件并修改渲染器中的元素。然而,如果没有看到代码,就很难给出具体的答案。
public override function set data(value:Object):void{
super.data = value;
//do anything else that is required.
}