0 Replies Latest reply on Jan 5, 2008 6:51 PM by mores610

    problem converting mx:RemoteObject into ActionScript

      The following mxml code works fine, therefore everything on the server is configured correctly:

      <mx:RemoteObject id="srv" showBusyCursor="true" endpoint="" destination="pojo" />

      When I try this in actionscript:
      var channelSet:ChannelSet = new ChannelSet() ;
      var channel:AMFChannel = new AMFChannel( "pojo", "" );
      channelSet.addChannel( channel );

      employeeRO = new RemoteObject( );
      employeeRO.channelSet = channelSet;
      employeeRO.destination = "pojo";
      employeeRO.addEventListener( "fault", faultHandler) ;

      I am always getting:
      [MessagingError message='Unknown destination 'pojo'.']

      What am I missing ?