
Hi....
What is invalidation Cycle? What are its uses?
please give me an example for that....
Thanks

Ans:
Invalidation life-cycle:
*Flex imposes deferred validation on the Flash API.
Goal: defer screen updates until all properties have been set
*Three main method pairs to be aware of:
for example:
public class BadList extends VBox
{
private var _dataprovider : ArrayCollection
public function set dataprovider( arr: ArrayCollection ):void{
this._dataprovider = arr;
arr.addEventListner( CollectionEvent COLLECTION_CHANGE,
dataProviderChangeHandler);
}
private function dataProviderChangeHandler(e:Event):void{
this.removeAllChildren();
for each(var n:Number in this._dataProvider){
var l:Label = new Label();
l.text = n.toString();
this.addChild(l);
}
}
public function BadList(){
}
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.