1 Reply Latest reply on Aug 30, 2007 11:34 AM by Bob Saggot

    Returning String Value

    drama1628
      Hey Guys,

      I have been working on this issue for several days: I currently have fds working on tomcat. I was able to to the url and the button that I created showed up. However, when I click on the button, nothing happens. A String is suppose to return.

      This is my java code:

      public class Test
      {
      public static void main( String[] args )
      {
      new Test();
      }

      public Test()
      {
      System.out.println("Method return value:" + getReturnValueFromMethod() );
      }

      public String getReturnValueFromMethod()
      {
      return "123456abcdefg";
      }
      }

      and I am calling the getReturnValueFromMethod.

      ...This is my mxml

      <mx:RemoteObject id="myRemoteObject"
      destination="demoService"/>
      <mx:Button label="Get String" click="myRemoteObject.getReturnValueFromMethod()"/>
      <mx:Label text="{myRemoteObject.getReturnValueFromMethod.lastResult}"/>

      anyone has any ideas?

      Thanks