Apache flex 根据mx:列表中的选择更改mx:图像中显示的图像

Apache flex 根据mx:列表中的选择更改mx:图像中显示的图像,apache-flex,childcontrol,Apache Flex,Childcontrol,选择mx:List时,如何使mx:Image显示所选项目 <mx:List id="dataList" dataProvider="{mdataList}" width="100%" height="190" > <mx:itemRenderer> <mx:Component> <mx:HBox height="30" borderStyle="solid" cornerRadius="10" width="100%" horizont

选择
mx:List
时,如何使
mx:Image
显示所选项目

<mx:List id="dataList" dataProvider="{mdataList}" width="100%" height="190" >
<mx:itemRenderer>
 <mx:Component>      
  <mx:HBox height="30" borderStyle="solid" cornerRadius="10" width="100%" horizontalScrollPolicy="off" verticalScrollPolicy="off">
   <mx:Image name="icon" source="@Embed(source='Images/see.png')"  visible="false"/>
   <mx:Label width="165" height="100%" text="{data.legend}" />
   <mx:Label name="txt" width="20" height="100%" text="{data.Name}"  visible="false" />
  </mx:HBox>
 </mx:Component>
</mx:itemRenderer>


将itemClick事件添加到我不理解的列表中。您向我们显示的唯一mx:Image是在itemRenderer中。它将为列表中的每个显示元素显示;无论是否选择该项。也许您应该编辑您的问题,详细说明您希望“mx:Image”如何显示所选项目?