4 Replies Latest reply on Jan 17, 2012 9:05 AM by scaleheights89

    ArrayCollection for combo box - null vlaue

    scaleheights89 Level 1

      I have defined an ArrayCollection like this:

       

      public var typename:ArrayCollection = new ArrayCollection(["Simple" , "Complex"]);

       

      In mxml file,

       

      the usage is,

      <mx:ArrayCollection id = "sample">

      <mx:Object dataField = "type" dataType = "Array" dataProvider = "{com.values.typename}" editable = true updatable = "true"/>

      ..

      ..

      </mx:ArrayCollection>

       

      In screen, i get the drop down with a null value. I want only two values dropped down , Simple and Complex.

       

      Where does this null field come from??