Flex ~ get List control allowMultipleSelection="true" values

Action Script
var xx:XML = <root><node label="GGYY" TypeID="3"></node><node label="YYGG" TypeID="4"></node></root>
copyToSiteList.dataProvider = xx.node;

for(var i:int=0; i < copyToSiteList.selectedItems.length; i++)
{
trace(copyToSiteList.selectedItems[i].@TypeID);
}


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

1 則留言:

匿名 說...

[url=http://www.gamaoyun.com/gta-699.html]gta oyna[/url]