当我使用第一个代码时它起作用,将值返回给我。但是,如果我改变
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>
答案 0 :(得分:0)
“Operation1Result2.lastResult”的价值是多少?对我来说,这看起来像一个对象而不像IList。