Skip navigation
Currently Being Moderated

rubyamf with Flash

Oct 7, 2010 11:23 AM

Hello

I am trying to do a communication between Flash and Ruby


So I installed the rubyamf plugin and did everything I need on the ruby side

 

But now when I try to set my code on the flash side I have an error

 

MY code :

 

import flash.net.*;

 

var nc:NetConnection = new NetConnection();

 

nc.connect("http://localhost:3000/rubyamf_gateway");

 

var responder:Responder=new Responder(onResult,onFault);
nc.call("UsersController.save", responder);

 

function onResult(responds:Object):void {
    trace('onResult');
}

 

function onFault(responds:Object):void {
    trace('onFault');
}

 

I have this error


Error #2044: Unhandled NetStatusEvent:. level=error, code=Client.Data.UnderFlow
    at rubyamf_fla::MainTimeline/frame1()

 

 

Anyone has an idea?

 

Thank you !

 
Replies
  • Currently Being Moderated
    Oct 7, 2010 11:44 AM   in reply to leaflashdev

    Just on the surface "Data.underflow" would indicate to me that the size of

    your data structures (Server|Client) differ.

     

     

    Thanks

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 7, 2010 11:52 AM   in reply to leaflashdev

    Activate the network monitor and look at the size of the data being passed

    when you execute the request.

     

     

    Thanks

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points