【发布时间】:2011-04-26 06:06:36
【问题描述】:
我有一个作为数组列表作为数据提供者的列表。它有一个内联项渲染器,它有图像控制。点击事件对图片 ctrl 不起作用。代码如下所示
<s:ArrayList id="allActionsArrList">
<fx:Object click="showList('Portlet')" source="@Embed('images/bpc1.jpg')" />
<fx:Object click="showList('Pages')" source="@Embed('images/Tab.png')" />
<fx:Object click="smsClick()" source="@Embed('images/launchpad_tel.png')" />
<fx:Object click="logoutImg_clickHandler(event)" source="@Embed('images/logoutS.swf')" />
</s:ArrayList>
<s:List id="actionStripList" bottom="0" width="100%" borderColor="black"
borderVisible="true" contentBackgroundAlpha="0" dataProvider="{allActionsArrList}"
useVirtualLayout="false">
<s:layout>
<s:TileLayout/>
</s:layout>
<s:itemRenderer>
<fx:Component>
<s:ItemRenderer width="100%" height="40">
<mx:Image buttonMode="true" horizontalCenter="0"
width="40" height="40" source="{data.source}" click="{data.click}"/>
</s:ItemRenderer>
</fx:Component>
</s:itemRenderer>
</s:List>
任何想法。提前致谢!
【问题讨论】:
标签: apache-flex flex3 flex4