4 Replies Latest reply on Nov 11, 2009 7:57 AM by TomDelorenzi

    Listening to bound variables

    TomDelorenzi

      I did some googling and I don't see anyone asking this so hopefully its not been answered too many times before.

      I have a variable in my component:

       

      [Bindable]
      public var selected:Boolean=false;

       

      in my skin I want to have an effect play in response to that changing. Clearly there is a observer thing going on because you can bind for changes but how do you do that yourself?

      So in the skin's script block I would like to register for changes to that variable in my hostComponent and then play this effect either backwards or forwards depending on the value of selected after the change.

       

      Thanks.