1 Reply Latest reply on Dec 27, 2006 11:27 AM by ntsiii

    Model and array

    ebeaulieu
      Hi,

      I took this example in the documentation and it doesn't work! Do you know why?
      Thanks!

      <?xml version="1.0"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml">

      <mx:Model id="myDP">
      <obj>
      <item label="AL" data="Montgomery"/>
      <item>
      <label>AK</label>
      <data>Juneau</data>
      </item>
      <item>
      <label>AR</label>
      <data>Little Rock</data>
      </item>
      </obj>
      </mx:Model>

      <mx:ArrayCollection id="stateAC" source="{myDP.obj.item}"/>
      <mx:ComboBox dataProvider="{stateAC}"/>

      </mx:Application>