2
votes

I am binding an object with a label. It gives me this warning. I have written the follwing code

s:Label width="296" height="20" fontSize="18" text="{obj.companyParty_Name}"

where companyParty_Name is a field in the obj which i want to display on the label

What does the above warning mean?

2

2 Answers

2
votes

The property companyParty_Name is not Bindable.

About Data Binding

In order to make the warning go away you need to add the annotation [Bindable] above the property definition. Like so:

[Bindable]
private var companyParty_Name:*;
1
votes

I had the same warning with this code

<mx:DateField id="buy_expiry_date" disabledRanges="{[{
    rangeEnd: new Date(today.year,today.month,today.date - 1)
}]}"/>

Then i changed it to

<mx:DateField id="buy_expiry_date" disabledRanges="{[{
    rangeEnd: new Date(today.getFullYear(),today.getMonth(),today.getDate() - 1)
}]}"/>

And it stopped warning me.