2 Replies Latest reply on Jan 11, 2010 4:08 AM by dipeca

    How to do two-way data binding to array elements.


      I have an array collection like:



      private var myData:ArrayCollection = new ArrayCollection([1, 2, 3, 4, 5]);


      I have bound five different textboxes to individual elements of the AC, like so:


      <mx:TextInput x="235" y="125" text={myData[1]}" />


      The data shows up, but what I want is when i change the text in TextInput, the element's value should change as well. (And thats not happening). Any suggestions?