HI Lieven,
The way I usually do this is wrap the function I want to call with a setter
function. So for example lets say I have <mx:Binding source="{model.myValue}"
destination="myValue" />, I'd have a function:
private function set myValue(v:String) : void {
if(v != null) {
callMyFunction(v);
}
}
If you only want to use AS you can use the bindSetter method in
BindingUtils. You can also look into using the Observe tag.
http://weblogs.macromedia.com/auhlmann/archives/2006/09/using_binding_s.cfm
--Josh
On 1/26/07, Lieven Cardoen <[EMAIL PROTECTED]> wrote:
Is it possible to bind a property to a function... A bit like the
MVC-pattern…
When a property changes, a function should be triggered…
BindingUtils can't seem to do this.
Thx, Lieven Cardoen
*Lieven Cardoen
**Application developer
**
**indie**group**
**interactive digital experience**
**engelse wandeling 2 k18
b8500 kortrijk ***