|
|
English
Home >
Flash News > Using DataSelector & the modelChanged Event in the Same Class
|
 |
|
|
|
Using DataSelector & the modelChanged Event in the Same Class
|  |  |  |
Printer version
By Jesse Warden http://www.jessewarden.com/
As I've mentioned before, DataSelector is a helpful class when dealing with dynamic components that you want to have react to ever-changing data. Shove a dataProvider in your DataSelector-empowered component, and watch it work it's magic. However, what my aritcle didn't mention was how to utilize DataSelector & modelChanged in the same class. Since DataSelector is a mixin, both in Flex and Flash, it adds methods and properties at runtime. So, if you define a method called "modelChanged", it'll get overwritten after you compile; when the SWF runs. You can add an event listener, but this only gets triggered when
Read the complete article here
(Added: 10-28-2005, Hits: 0, Rating: 0.00, Votes: 0, Reviews: 0)
Add to Favorites Suggest to a Friend
|
|
|
 |
 |


|
|
|
|
|
|