Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training

How to display on textbox using ObjectUtil class

In this tutorial we will see how to display a text in textbox using ObjectUtil class.

Ads

How to display on textbox using ObjectUtil class

     

In this tutorial we will see how to display a text in textbox using ObjectUtil class.

Here is the code:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="initApp()">
<mx:Script>
<![CDATA[
import mx.utils.ObjectUtil;

private var obj: Object=new Object();

private function initApp():void
{
obj.a="Hello";
obj.b="Hi";
obj.c="Howdy";
}
public function dumpObj():void
{
for(var txt:String in obj)
{
newText.text=ObjectUtil.toString(obj);
}
}
]]>
</mx:Script> 
<mx:TextArea id="newText" width="293" height="58" x="52" y="46"/>
<mx:Button id="B" label="Click Me" click="dumpObj()" x="154" y="124"/>
</mx:Application>


  

 

Advertisements

Ads
Share on Google+Share on Google+

How to display on textbox using ObjectUtil class

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

Advertisements

Ads
 

Discuss: How to display on textbox using ObjectUtil class  

Post your Comment


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

Ads

 

Ads