Explain about component life cycle?

Answer

   The component instantiation life cycle describes the sequence of steps that occur when you create a component object from a component class. As part of the life cycle, Flex automatically calls component methods, dispatches events, and makes the component visible.
            3 Main Phases:
            BIRTH
                        Construction, configuration, attachment, initialization
            LIFE
                        Invalidation, validation, interaction
            DEATH
                        Detachment, garbage collection
           
            override protected function createChildren():void{
                        myLab=new Label();
                        myLab.text="my label";
                        myLab.setStyle('color',"green");
                        this.addChild(myLab);
            }
override protected function updateDisplayList(unscaledWidth:Number,  unscaledHeight:Number):void {
                        myLab.move(0,0);
                        myLab.setActualSize(100,100);
            }
           

All flex Questions

Ask your interview questions on flex

Write Your comment or Questions if you want the answers on flex from flex Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---