I have an ArrayCollection defined like this:
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:public var test:ArrayCollection = new ArrayCollection([ { Id:"one", Amount:2000 }, { Id:"two", Amount:1000 }, { Id:"three", Amount:200 } ]);
Can someone please help me with this?Code:comboName.dataProvider = test.Id;
thanks in advance




Reply With Quote