Assume i have a costum actionscript class.
public class myClass
{
private var myVariable:ArrayCollection;
...
}
Suppose also that i have a different class, that changes a second variable, which has the metadatatag [Bindable]. What methods and events do i have to implement in either of these classes, to make myVariable change, whenever the other is changend?
If you make the
myVariablepublic, then you can just use[BindingUtils.bindProperty()][1]:If you prefer to keep
myVariableprivate, then you can use[BindingUtils.bindSetter()][2]: