1 Reply Latest reply on Oct 18, 2007 8:38 AM by msabljic

    ArrayCollection field as ComboBox dataProvider question

    msabljic Level 1
      I have an ArrayCollection defined like this:

      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:

      comboName.dataProvider = test.Id;

      Can someone please help me with this?

      thanks in advance