Development Flex



    
        
            import mx.controls.Button;
            import mx.controls.TextInput;
            private function addItems(  ):void
            {
                var ti:TextInput = new TextInput(  );
                this.addChild(ti);
                var btn:Button = new Button(  );
                btn.label = "Submit";
                this.addChild(btn);
            }