Simple Text display

In this tutorial we will come to know that how to display any text in a text input box using a button click.

Ads

Simple Text display

     

 

In this tutorial we will come to know that how to display any text in a text input box using a button click. It is very simple to develop and quick to understand. We will develop a panel in flex and within that flex panel we have to use a button and a textinput box which are present in flex.

 

 

 

SimpleText.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:TextInput id="text1" width="100" x="0" y="0"/>
  <mx:Button label="click me" click="text1.text='howdy'" x="15" y="50"/>
  </mx:Panel>

</mx:Application>


  

 

Advertisements

Share on Google+Share on Google+

Simple Text display

Posted on: February 16, 2005 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Advertisements

 

Discuss: Simple Text display  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:1
anurag
September 12, 2012
javascript

display a text box and submit button before it whatever value i enter in text box the same no of textbox display and each textbox has a submit button before it as soon as submit the text comes out from the text box.

Ads

 

Ads