Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache flex Flex Mobile,从SpinnerList获取价值数据_Apache Flex_Mobile - Fatal编程技术网

Apache flex Flex Mobile,从SpinnerList获取价值数据

Apache flex Flex Mobile,从SpinnerList获取价值数据,apache-flex,mobile,Apache Flex,Mobile,当我使用第一个代码时,返回值。但是,如果我改变 list=“{new ArrayList(['test1','test2'])” 到 list=“{Operation1Result2.lastResult} 返回值与[object songvoting]类似 受保护函数spinnerList\u changeHandler(事件:IndexChangeEvent):无效 { Debug.text=event.currentTarget.selectedItem;

当我使用第一个代码时,返回值。但是,如果我改变

list=“{new ArrayList(['test1','test2'])”

list=“{Operation1Result2.lastResult}

返回值与[object songvoting]类似


受保护函数spinnerList\u changeHandler(事件:IndexChangeEvent):无效
{               
Debug.text=event.currentTarget.selectedItem;
}


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

这是获取http json的服务,微调器工作正常,给了我微调器列表上的所有内容。label.text=Operation1Result2.lastResult输出就像[Object blabla]、[Object balbala]、[Object blalaa]list=”{Operation1Result2.lastResult}”或dataProviderlist=“{Operation1Result2.lastResult}”在Spinnerlist/ColumnChart上,它将返回Spinnerlist/ColumnChart上的值。因此,如果我理解正确,“Operation1Result2.lastResult”返回songvoting对象的IList,而new ArrayList(['test1','test2'])只是字符串的一个IList,对吗?是的,所以spinnerlist上的数据是从http jon获得的。哦,是的,我只是发现我的代码可以通过将Debug.text=event.currentTarget.selectedItem更改为Debug.text=spinnerlist..selectedItem.song;
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>