Home Flex Change button's text:



Change button's text:
Posted on: April 3, 2006 at 12:00 AM
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>


  

 

Related Tags for Change button's text::


More Tutorials from this section

Ask Questions?    Discuss: Change button's text:  

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.