Hi,
How can I pass a 'set' function as the Function Object argument of another function? eg:
public class IdModel
{
private var _id:String;
public function IdModel(source:Source)
{
//Create Binding
BindingUtils.bindSetter(id,source,"id");
}
public function get id():String
{
return _id;
}
public function set id(value:String):void
{
_id = value;
}
}
}
In the example above the 'id' argument is being evaluated and returning a String, so it won't compile with the error: "String is not assignable to argument of type Function".
Thanks