I am writing a component that needs to change its view based on an xml's changing attributes. Something like: [Bindable] var xx:XML= <a> <b id="1" show="true"> </a> public function wee(){ //ReDraw the view } myWatcher=ChangeWatcher.watch(this.xx, ["a","b","@show"],wee);
I know that the flex components can update their "view" when an xml changes, but I dont seem to be able to make it work. Basically I am making a tree component (not extending as it is different from an actual tree component) and I want to display nodes as they are added to the XML as well as changes to the attributes. Any Ideas? Thanks Hosey