-1

当我使用第一个代码时,它可以工作,将值返回给我。但是,如果我改变

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>

4

1 回答 1

0

“Operation1Result2.lastResult”的值是多少?对我来说,这看起来像一个单一的对象,而不是一个 IList。

于 2013-05-03T05:26:29.307 回答