Apache flex Flex:创建自定义列表组件

Apache flex Flex:创建自定义列表组件,apache-flex,custom-component,dataprovider,Apache Flex,Custom Component,Dataprovider,我试图扩展mx:Box容器,以便在容器的外部放置两个按钮,以循环浏览其内容(类似于滚动条) 我制作了一个定制组件,它看起来基本上 像“mx:HBox->mx:Button mx:Box mx:Button”,其中按钮和框是HBox的子项 我如何通过我的自定义组件向用户提供对box的访问(比如说它的dataProvider和itemRenderer) 因此,他们只需要写“local:MyCustomComponent dataProvider=“rar”itemRenderer=“rar”/>”,

我试图扩展mx:Box容器,以便在容器的外部放置两个按钮,以循环浏览其内容(类似于滚动条)

我制作了一个定制组件,它看起来基本上 像“mx:HBox->mx:Button mx:Box mx:Button”,其中按钮和框是HBox的子项

我如何通过我的自定义组件向用户提供对box的访问(比如说它的dataProvider和itemRenderer)


因此,他们只需要写“local:MyCustomComponent dataProvider=“rar”itemRenderer=“rar”/>”,组件中的我的框就可以使用它了?

创建代理列表组件属性的getter和setter

i、 e:

private function set dataProvider(value:Object):void
{
 list.dataProvider = value;
}