its not specific to any class, its part of the framework. its a very handy
way to optimise in truth, when a specific property updates you only fire
that one event, and only the property(ies) associated with that event via
binding will update.
you can also have multiple binding tags with one getter, for example
[Bindable("eventA")]
[Bindable("eventB")]
funciton get a():String
{
}
lastly its a way to make read only properties bindbale.
On Thu, Sep 3, 2009 at 6:02 PM, Johannes Nel <[email protected]> wrote:
> it means the binding will only update when the dataChange event fires on
> that object.
>
>
> On Thu, Sep 3, 2009 at 4:40 PM, Nick Middleweek <[email protected]>wrote:
>
>>
>>
>> i'm still new to Flex... I'm going through someone's code and i'm
>> wondering what *[Bindable("dataChange")]* does.
>>
>> It's in an ItemRenderer MXML file for an Advanced DG. it's not inside any
>> function, it's near the top, underneath the import statements and variable
>> declarations and before the first function.
>>
>> Can anyone shed some light on it please?
>>
>>
>> Cheers,
>> Nick
>>
>>
>>
>
>
>
> --
> j:pn
> \\no comment
>
--
j:pn
\\no comment