5 Replies Latest reply on Aug 4, 2010 2:09 PM by Flex harUI

    "Data binding will not be able to detect assignment ..." although [bindable] is set.

    justALinguist

      Hi everyone,

       

      thanks in advance for taking some time to try to help me.

       

      I am getting the warning "Data binding will not be able to detect assignment ..." for an

      ArrayCollection although all [bindable] properties are properly set - at least i think so ... ;-)

       

       

      [bindable]
      private var allParties:ArrayCollection = new ArrayCollection();
      
      and then later:
                     <s:DropDownList id="dropDownList_party_sprecher1"
                                                              [...]
                                         labelField="_internal_partyname">
                          <s:AsyncListView list="{allParties}"/>
                     </s:DropDownList>
      

       

       

      The array collections elements are a custom class of mine, that was automatically

      generated by the flash builder php service thingy. This class is also marked as [bindable]:

       

       

      [Bindable]
      public class Parties extends _Super_Parties
      {
           [...]
      }
      

       

       

      and the extended class with

       

      [Managed]
      [ExcludeClass]
      public class _Super_Parties extends flash.events.EventDispatcher implements com.adobe.fiber.valueobjects.IValueObject
      {
      [...]
      
           [Bindable(event="propertyChange")] 
          public function get idx() : int    
          {
                  return _internal_idx;
          }    
           [Bindable(event="propertyChange")]
          public function get partyname() : String    
          {
                  return _internal_partyname;
          }  
      [...]
      }
      
      As I understand it, the [Managed] makes the whole class 
      [bindable] as well and the getters are marked too.
      I've put the [bindable] keyword anywhere I could imagine 
      but it doesn't help at all.
      In principle I wouldn't mind the warning, but the 
      dropdown-list doesn't work.
      
      Please let me know if you need any more information,
      
      Thanks