1 Reply Latest reply on Jan 16, 2012 9:55 PM by scaleheights89

    "data binding will not be able to detect assignments" warning

    scaleheights89

      hi,

       

      my VO class:

      package com.pck1;

      [Bindable]

      class Sample{

      public var var1:String;

      public var var2:String;

      }

       

      the mxml file:

       

      <mx:Script>

              <![CDATA[

                 import com.pck1.Sample;

              ]]>   

          </mx:Script>

       

      <mx:ArrayCollection id =SampleView>

      <mx:Object dataField = "var1" headerText= "name" dataType ="Array" dataProvider = "{com.values.name}" updatable = "true"/>

      <mx:Object dataField = "var2" headerText= "school" dataType ="Array" dataProvider = "{com.values.school}" updatable = "true"/>

      </mx:ArrayCollection>

       

      in com.values file , i ve defined name as

       

      [Bindable]

      public var name :ArrayCollection  = new ArrayCollection{["A","B", "C"]};

      public var school :ArrayCollection  = new ArrayCollection{["XX","YY", "ZZ"]};

       

       

      i get the warning "data binding will not be able to detect assignments to var1".  Also, The screen is not reflecting the changes when the field value is changed. Even after including change watcher, i am facing the same problem..

       

      Could someone pls resolve this asap..