2 Replies Latest reply on Aug 3, 2009 2:54 PM by Gregory Lafrance

    Calculation in BindingUtils




      I'm having a few troubles with actionscript and using binding utils.


      In a bind in MXML I can do something like:




           height = "{parentApplication.height - 200}"



      i.e I can add a fixed offset to the attribute.


      Is there any way I can do this in actionscript using binding utils?


      if i was doing this to the above element i'd ahve something like:


      var p:Panel = new Panel;

      BindingUtils.bindProperty(p, "width", parentApplicaion, "width");


      but i cant figure out how i can add the calculation in.


      Could someone please help?