有没有办法颠倒组合框中项目的顺序?我想使用索引号来引用下面 arrayCollection 中的项目。我希望最新的内容首先出现在组合框中。但是,如果我在第一项之上添加一些东西,那么所有的索引号都会减一。如果我可以在 arrayCollection 的末尾添加一个新项目,但让它首先出现在组合框下拉列表中,这将解决很多问题。
<mx:ComboBox id="MyComboBox" change="handler(event);" prompt="Make a Selection">
<mx:ArrayCollection id="myDP">
<mx:Object id="first" label="Label 1" series="2" pageTitle="Title 1"/>
<mx:Object id="second" label="Label 2" series="7" pageTitle="Title 2"/>
<mx:Object id="third" label="Label 3" series="9" pageTitle="Title 3"/>
</mx:ArrayCollection>
</mx:ComboBox>
有什么建议么?
谢谢你。
-拉克西米迪