Flex ~ assing item for List control by XML

Action Script
var xx:XML = <root><node label="GGYY"></node><node label="GGYY22222"></node><node label="Parts Sto123re"></node></root>

copyToSiteList.dataProvider = xx.node;


MXMXL
<mx:List allowMultipleSelection="true" id="copyToSiteList" labelField="@label" >
</mx:List>

http://livedocs.adobe.com/flex/3/html/help.html?content=dpcontrols_2.html

沒有留言: