ArrayCollection as ComboBox dataProvider question
I have an ArrayCollection defined like this:
Code:
public var test:ArrayCollection = new ArrayCollection([
{ Id:"one", Amount:2000 },
{ Id:"two", Amount:1000 },
{ Id:"three", Amount:200 } ]);
And i would like to make 'Id' field of 'test' ArrayCollection as dataProvider for a ComboBox compoenent but can't figure it out how.I tried with following but get an error:
Code:
comboName.dataProvider = test.Id;
Can someone please help me with this?
thanks in advance