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.

Simple Text display

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>