0 Replies Latest reply on Mar 30, 2007 3:36 AM by gluip

    Binding problem

    gluip
      Hello,

      My problem concerns binding through a 'wrapper'. I have a class A

      [Bindable]
      class A
      {
      public instanceofB:B
      public function get CanContinue():Boolean
      {
      return (!instanceofB.Completed);
      }
      }
      [Bindable]
      class B
      {
      public var Completed:Boolean;
      }

      So you see the canContinue property of A should always be the inversion of B.completed. Now my problem is when i bind controls to A.CanContinue they are NOT reevaluated when B.Completed changes. I have tried tris by adding change events to both properties Completed and InstanceOfB but had no luck there. It seems flex assumes the getter is read-only like a const and only copies the values once during startup :( Could some explain how this should work?

      Thanks