Diving in the Flex Data Binding Waters
by michael.labriola
- 22,416 views
In depth overview of the Flex data binding code generation. Provides info on accomplish data binding through actionscript as well as limitations of the process.
In depth overview of the Flex data binding code generation. Provides info on accomplish data binding through actionscript as well as limitations of the process.
Accessibility
Categories
Upload Details
Uploaded via SlideShare as Microsoft PowerPoint
Usage Rights
© All Rights Reserved
Statistics
- Likes
- 18
- Downloads
- 495
- Comments
- 3
- Embed Views
- Views on SlideShare
- 21,361
- Total Views
- 22,416
When you mark a class or a specific property/getter/setter as [Bindable], it basically marks that item for code generation via the pre-compiler before the compiler does it's thing with the code. The dispatchEvent(...) is automatically generated.
When you say [Bindable(event='blah')] or [Bindable(event='propertyChanged')], the pre-compiler says, wow, this guy knows what he is doing, and expects you to dispatch the event.
This has nothing to do with the performance implications (e.g. 5000 bindable variables in a model locator all dispatching the same event) where your 'custom' name just happens to be the auto-generated event name.
Hope that helps 3 years ago
The mutator seems to call its matching accessor automatically; does this have anything to do with a binding optimization ?
Cheers 3 years ago
An important part is maybe coming a bit too short in the slides: Performance.
Binding with MXML is cool but much slower then using BindingUtils (~50%)... 4 years ago