1 Reply Latest reply on Feb 2, 2009 1:01 AM by RUSH-ME

    Data Provider in ComboBox

    Shirker1
      Hi:
      The following example works fine with the commented mx:dataProvider.
      When I change it to a variable and define it as a dataProvider={prov1} in the ComboBox I get the following error:
      "Access of undefined property prov1"
      What is wrong?
      Thanks.
        • 1. Re: Data Provider in ComboBox
          RUSH-ME Level 3
          Hi

          When you are adding an itemrenderer it becomes a separate component. As your prov1 arraycollection is a private type variable so you could not access it from that component.
          To access that variable make it public.
          Then in combobox's dataprovider write
          dataprovider={outerDocument.prov1}

          Hope this will help you.