Flex - Dynamic Array Collection

Hi Guys,

I’m trying to cross over to Flex but finding some problems. Take the following:


Data = new ArrayCollection ([
					
{label:'label1'},
{label:'label2'},

{title:'mytitle1'},
{value:'110', link: 'Location1.html'},
{value:'100', link: 'Location1.html'},

{title:'mytitle2'},
{value:'143', link: 'Location1.html'},
{value:'764', link: 'Location1.html'},

]);

How can I dynamically create this ? I have tried to create 3 separate arrays them combine them but with no luck :frowning: