0 Replies Latest reply on Apr 4, 2008 5:39 AM by BIOSMonkey

    Binding to a static property with actionscript

      I cannot seem to get BindingUtils to fire the handler when binding to a static property of a data class.
      Consider a class MyClass, marked as [Bindable] and a static string property "mystring".

      This works:
      <mx:Label text={MyClass.mystring}>
      and will reflect changes to mystring.

      This does not:
      var watcherSetter:ChangeWatcher = BindingUtils.bindSetter(chgDetected,MyClass,"mystring");

      The chgDetected function will never fire (except on app startup).

      This concept is the foundation for component data sharing in my current project, and I can't get this simple thing to work. What am I doing wrong?