You can avoid binding altogether since it is a fixed value (I assume) that you are after. The overhead of binding is unnecessary in this case. All that you have to do is give the Label an id and set its text property in AS.
No, I don't really need binding per se, and although I could do it in AS, it's annoying that all other properties can be set in MXML and just one needs to be AS. Makes it hard to move a bit of code to another project if I forget I had an AS constriction as well.
The label example was just to make it easy to understand.
I am using it on a Date input with minYear=1900 and maxYear=new Date().fullYear.
There's no other wat of doing this other than AS without getting the warning?
The only option I see is making a [Bindable] variable fullYear and givin it the value of new Date().fullYear and then binding it with the maxYear property.
In FB3, I use this compiler flag to get rid of those warnings:
Is the correct mxml syntax.
I know that, but not all warnings need to be hidden.
Thank you! Excellent.