I’ve been hanging out a bit lately over at Stack Overflow answering questions, earning badges, etc. I love to find older questions that have incomplete answers or answers that could be expounded upon. Here is the latest question I wrote an answer for.
What does [Bindable] mean in ActionScript?
You can either read my answer here or over on Stack Overflow.
[Bindable] is a one of several meta tags that you can use in flex ActionScript code. It can be applied to properties, or methods that are marked in any scope. It cannot be used with static class members.
The key to useing the [Bindable] meta tag is understanding what is going on under the hood when you use it. Essentially using data binding is a type of short hand for adding event listeners and dispatching events.
There are two basic forms of the [Bindable] tag. The first is just [Bindable] followed by a var/property declaration. The Second is [Bindable(event="eventname")] followed by either a var/property declaration, a function/method declaration or one half of a getter/setter declaration.
I’ll explain the longer notation first since the other builds on the same concept but with even more short hand.
