我有一个 flex 图像,当我将鼠标悬停在上面时,我希望能够根据在列表中选择的项目从表中提取一些数据。
这是图像:
<s:Image source="@Embed('assets/icons/question-mark_16.png')"toolTip=""/>
这是数组集合:
private var availableReports:ArrayCollection = new ArrayCollection([
{listOrder: 1, label: "Activity Summary Report", data: "actySummary", url: ""},
{listOrder: 2, label: "Activity Report", data: "actyReport", url: ""},
{listOrder: 3, label: "Performance Metrics and Data", data: "pmadReport",
url: properties.getProperty("config.links.pmd")},
{listOrder: 4, label: "More Detailed Reports...", data: "moreReports",
url: properties.getProperty("config.links.reports")}
]);
这是显示 ArrayCollection 的列表:
<s:List id="availableReportsList" width="100%"
dataProvider="{availableReports}" selectedIndex="0"
change="availableReportsList_changeHandler(event)"
height="90">
</s:List>