Mark click event as its own tag : Click Event « Event « Flex






Mark click event as its own tag

Mark click event as its own tag
           
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">

    <mx:Button>
      <mx:click>
        
          mx.controls.Alert.show("Example");
      
      </mx:click>
    </mx:Button>
</mx:Application>

   
    
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Click event example (MXML)Click event example (MXML)
2.Listen to a Button ClickListen to a Button Click
3.Nested inner function is called when the button is clickedNested inner function is called when the button is clicked
4.button clickbutton click
5.Click event attribute can take ActionScript code as its valueClick event attribute can take ActionScript code as its value
6.ActionScript event handling logic inside the MXML tag's click eventActionScript event handling logic inside the MXML tag's click event
7.Intercept a click eventIntercept a click event
8.Double click eventDouble click event
9.The click event attribute can take ActionScript code directly as its valueThe click event attribute can take ActionScript code directly as its value
10.Use Event object to get a reference to the clicked ColumnSeries.Use Event object to get a reference to the clicked ColumnSeries.
11.Define custom behavior for the click event of the LinkElement object.Define custom behavior for the click event of the LinkElement object.