I have this variable in Model class:
[Bindable]
public var someXml:XML;
I've used BindingUtils to get notified when the XML changes:
BindingUtils.bindSetter(onChange, Model.getInstance(), "someXml");
private function onChange(value:Object):void {
// do something
}
Function onChange
gets triggered when I assign an XML to the variable, but not when I change some attribute of the XML:
Model.getInstance().someXml.@attr = "newValue";
Why?