11 Replies Latest reply on May 27, 2010 1:13 AM by -BoNzO-

    Combination of function and arg bindable

    -BoNzO- Level 2

      Hello,

       

      Just now I gave a try at simplifying my code by trying the following :

       

      ------------------------------------------------------------------------------------------ ---------------------------------

       

      [Bindable( event="wowo" )]
      public function someBindableFunction( arg : String ) : String
      {
          return arg + " yeah yeah";
      }

       

      private function invalidateSomeBindableFunction() : void
      {
           dispatchEvent( new Event( "wowo" ) );
      }

       

      ------------------------------------------------------------------------------------------ --------------------------------

       

      arg being at runtime, an external bindable property.

       

      Unfortunately, the combination of the two kinds of bindable doesn't work. The function can't be triggered on the event "wowo" anymore.

       

       

      Is that a design decision or just a rarely used case that was judged not worth implementing ?

       

      Thanks