Components Flex


    
    
        
            import mx.events.FlexEvent;
            private function initApp(evt:FlexEvent):void
            {
                btn.addEventListener(MouseEvent.CLICK,showNames);
                btn.addEventListener(MouseEvent.CLICK,showTitles);
            }
            private function showNames(evt:MouseEvent):void
            {
                var temp:Array = new Array("A","B","C","D");
                trace(temp.toString());
            }
            private function showTitles(evt:MouseEvent):void
            {
                var temp:Array = new Array("Director","Vice-President","President","CEO");
                trace(temp.toString());
            }