0 Replies Latest reply on Mar 2, 2007 7:33 AM by abdel.olakara

    A simple Data service application trouble!

      hi everybody,
      I am very new to flex and just started working with it. Today i was trying to make use of FDS. My aim is simple. I have servlet that will send back "Hello flex" as simple text. Now i want to display this text in a text box in the flex application. for doing this i wrote the mxml app as follows:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" width="171" height="69">
      <mx:HTTPService url="@ContextRoot()/Hello" id="httpUrl"/>
      private function loadData() : void {
      textBox.text= httpUrl.lastResult.toString();

      <mx:TextInput x="5.5" y="10" id="textBox" />
      <mx:Button x="59" y="40" label="Load" id="loadButton" click="loadData();"/>

      The servlet returns a Object when i tried to print resultFormat... all i need is the text displayed in textBox!
      Thanks in advance for the help
      -- Abdel Raoof Olakara