I'm trying to databind an object's property to a ComboBox's (editable=true) text property. This property is of type Number.
If I bind using the inline syntax, it works:
<mx:ComboBox text="{myObj.prop}">
If I bind using mx:Binding, I receive an error:
<mx:Binding source="{myObj.prop}" destination="combobox.text" />
// 1067: Implicit coercion of a value of type Number to an unrelated type String.
Why this difference in behaviour?
Property definition:
private var _prop: Number;
[Bindable] public function get prop(): Number { return _prop; }
public function set prop(value: Number): void { _prop = value; }