当我使用第一个代码时,它可以工作,将值返回给我。但是,如果我改变
list="{new ArrayList(['test1','test2'])}"
至
list="{Operation1Result2.lastResult}
返回值就像 [object songvoting]
protected function spinnerList_changeHandler(event:IndexChangeEvent):void
{
Debug.text = event.currentTarget.selectedItem;
}
<s:SpinnerListContainer includeIn="vote" x="10" y="100" width="640" height="446">
<s:SpinnerList id="spinnerList" width="636" height="443"
creationComplete="spinnerList_creationCompleteHandler(event)"
labelField="song" selectedIndex="1" textAlign="center"
change="spinnerList_changeHandler(event)">
<s:AsyncListView list="{new ArrayList(['test1','test2'])}"/>
</s:SpinnerList>
</s:SpinnerListContainer>