显示包含XMLListCollection的列表
|
我是Flex新手,上个星期我一直在为这个问题而苦苦挣扎,我精打细算。
我打开了以下XML文件
<root>
<person>
<city-of-death>asdf</city-of-death>
<place-of-death>qwert</place-of-death>
</person>
<person>
<city-of-death>hjkl</city-of-death>
<place-of-death>yuio</place-of-death>
</person>
</root>
使用以下代码
[Bindable]
private var people:XMLListCollection;
private function resultHandler(event:ResultEvent):void {
people = new XMLListCollection(event.result.person);
}
并试图显示用于以下mxml
<s:List left=\"0\" height=\"94\" dataProvider=\"{people}\" labelField=\"@city-of-death\" width=\"144\" y=\"-1\"></s:List>
本质上,我希望有一个列表显示...但是没有显示任何内容
asdf
hjkl
如果有人可以帮助我,我将非常感谢。我正在拔头发!
没有找到相关结果
已邀请:
1 个回复
抵浮细
符号用于属性。尝试使用类似: