In my flex app I have a public bindable property.
I want it so that every time the value of that property changes, a function gets triggered.
I tried using ChangeWatchers, but it seems those only apply to built-in components like a text box change.
I would like to do that same behavior with a property that changes at runtime.
In my flex app I have a public bindable property. I want it so
Share
One option is to use
BindingUtils.bindSetter(which incidentally returns a ChangeWatcher):Here,
myValueChangedgets called whenever themyValueproperty changes. There are other ways, of course, but I often use this approach with good results. Hope it helps! Post back with questions and I’ll keep an eye out.