List.selectedItems 和 ArrayCollection 之间的转换

// initLocator.selectedPhase是一个ArrayCollection对象实例
// phaseList是一个List对象实例

// 赋值失败
initLocator.selectedPhase = ArrayCollection(phaseList.selectedItems);

// 赋值失败
initLocator.selectedPhase = phaseList.selectedItems as ArrayCollection;

// 赋值成功
initLocator.selectedPhase = new ArrayCollection(phaseList.selectedItems);
 

你可能感兴趣的:(list,Flex,selecteditems)