private var songsArr:ArrayCollection;
private function returnSongsHandler(e:ResultEvent):void
{
songsArr = e.result as ArrayCollection;
cbSongs.dataProvider = songsArr;
}
In addition to setting the dataProvider for the ComboBox, it is also necessary to set the labelField for the cb. Otherwise, you will see [object][object] in the menu. So, the ComboBox tag should look like:
This uses the songsArr ArrayCollection as a dataProvider, and displays the songTitle field of the array collection.

No comments:
Post a Comment