Home Flex Event.mxml



Event.mxml
Posted on: April 3, 2006 at 12:00 AM
This tutorial will help you to learn event handling on mouse click.

Event.mxml

     

 

This tutorial will help you to learn event handling on mouse click. Events can be generated by the user's device like keyboard, mouse, or a web service call. Events are also triggered when a component is created,changed or destroyed.

 

 

 

<?xml version="1.0"?>
<!-- events/SimpleEventHandler.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"  >
    <mx:Script><![CDATA[
  import mx.controls.Alert;

 
  private function myEventHandler():void {
  Alert.show("An event occurred.");
  }
  ]]></mx:Script>

  <mx:Button id="b1" label="Click Me"  click="myEventHandler()"  />

</mx:Application>


  

 

Related Tags for Event.mxml:


More Tutorials from this section

Ask Questions?    Discuss: Event.mxml  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.