Application click event : Application Event « Container « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Container » Application EventScreenshots 
Application click event
Application click event
            


<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle"
  click="clickHandler(event)">
  
  <mx:Script>
    
    
      private function clickHandler(event:Event):void
      {
        eventLog.text += "target=" + event.target.id + ", currentTarget=" + event.currentTarget.id + "\n\n";
      }
  
  </mx:Script>
  
  <mx:VBox id="myContainer" click="clickHandler(event)">
    <mx:Button label="myButton" id="myButton" click="clickHandler(event)"/>
  </mx:VBox>
  <mx:TextArea id="eventLog" height="110" width="50%"/>
</mx:Application>

   
    
    
    
    
    
    
    
    
    
    
    
  
Related examples in the same category
1.Application creationComplete event
2.Add event handler for applicationAdd event handler for application
3.Application initialize eventApplication initialize event
4.Use Application control's initialize eventUse Application control's initialize event
5.preinitialize, initialize, creationComplete events for Applicationpreinitialize, initialize, creationComplete events for Application
6.Application complete eventApplication complete event
w__w_w_.j___av___a___2__s_.co_m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.