1 Reply Latest reply on Jan 5, 2009 9:29 AM by rtalton

    Binding a function to multiple events

    ironblunt
      I have a ActionScript class that has a function which recalculates values for a datagrid depending on a couple of values. It's currently set as the data provider for the datagrid. If one of the 2 values changes, I wold like for the function to be re-called and refresh the datagrid.

      I have done the following to get the Function to bind to

      [Bindable(event="eventA")]
      public function get calculateValues():ArrayCollection {
      ...

      I would also like to bind the function to listen for "eventB" but when I try
      [Bindable(event=["eventA", "eventB"])]
      public function get calculateValues():ArrayCollection {

      It won't compile and I'm not sure what the syntax is for accomplishing this. Is there another way to handle this?

      s.park