XML ファイルからコンボボックスに国を入力しようとしています。残念ながら、コンボボックスはいっぱいになりません。この問題を解決するにはどうすればよいですか? 前もって感謝します!
これが私のコードです:
protected function navigatorcontent2_creationCompleteHandler(event:FlexEvent):void
{
fillCboCountries.addEventListener(ResultEvent.RESULT, fillCombobox);
fillCboCountries.send();
}
protected function fillCombobox(event:ResultEvent):void
{
cboCountries.dataProvider=event.result.global.countryItem;
}
<fx:Declarations>
<s:HTTPService id="fillCboCountries" url="https://marnixcoosemans2013.dreamhosters.com/scripts/countries_select.php"/>
</fx:Declarations>
<s:ComboBox id="cboCountries" x="10" y="414" width="173" labelField="countryLabel"/>