Set data for ComboBox with dataProvider
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
private function myBox_initialize():void {
myBox.dataProvider = ['none','some','all'];
}
</mx:Script>
<mx:ComboBox x="216" y="126" id="myBox" creationComplete="myBox_initialize();"/>
</mx:Application>
Related examples in the same category