Share on Google+Share on Google+

Change button's text:

Advertisement
This tutorial will help you to learn how to change the label of a button on clicking on itself.

Change button's text:

     

 

This tutorial will help you to learn how to change the label of a button on clicking on itself. It is another easy example on flex tutorial. Whenever a user click on the button the label of the button will change from clik me to Nice.

 

 

 

Button.mxml

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
  <mx:Panel title="New"  height="125"   x="150" y="20" layout="absolute">
  <mx:Button id="btn" label="click me" click="btn.label='Nice'" x="5" y="50"/>
  </mx:Panel>
</mx:Application>


  

 

Advertisements

Advertisement

Posted on: April 3, 2006 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Discuss: Change button's text:  

Post your Comment


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