PDA

View Full Version : OpenAMF Debugging


notpattison
04-20-2005, 01:44 AM
Hello everyone. I'm very new to actionscript, but I have some experience with standard java. I'm trying to use flash remoting with J2EE using OpenAMF and ASTranslator. I'm having trouble returning an ASObject back to the Flash client. I can translate a Java object to an ASObject without losing member attributes or methods, but the Flash client will only recieve an object that has no properties or methods. I can't find any good documentation that will help me debug this problem. I would like to see more debugging information on the server side, but I have no idea how this is done. Can anyone help?

Thanks.

fabiobon
04-28-2005, 04:21 PM
Class declaration

import java.io.Serializable;
public class "YourClass" implements Serializable

public "yourMethod"(a:String, b:int)

flash:
function yourMethod_Result(result){
// try to trace
trace(result.length);
trace(result.items[0]);
}