thanks a lot buddy....
regards Amit
-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]On Behalf Of Mercer, Dustin
Sent: Thursday, August 11, 2005 12:13 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] help.. passing arguments to a method using remoteobject

Ok gotcha… I must have missed the first part about class A…  It’s getting lateJ  Ok so anyways, this can be a tricky one.  Have you tried adding a fault handler to that remote object?  That may help you find out more.  Try this :

 

<mx:RemoteObject source="A" id="remot" event.fault.detail );”>
  <mx:method name="func1" result=""/>
</mx:RemoteObject>

 

I think event.fault.detail is the correct property.  This should give you a little more info about why it is failing.  Let me know how that goes.

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amit Sanon
Sent: Wednesday, August 10, 2005 11:16 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] help.. passing arguments to a method using remoteobject

 

thanks for the reply but it didnt help

 

this is the sig of my method to be called...

public int func1(int i, String st)
  {
     .......
  }

regards Amit

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]On Behalf Of Mercer, Dustin
Sent: Thursday, August 11, 2005 11:42 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] help.. passing arguments to a method using remoteobject

Usually that error is a result of one of the parameters being of the wrong type.  What does your Remote Object method sig look like?  From your example, your remote object method (func1) should look like this: public void func1(int param1, String param2){ //some code}

 

Let me know if that helps J

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amit Sanon
Sent: Wednesday, August 10, 2005 10:52 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] help.. passing arguments to a method using remoteobject

 

i cannot figure out how to pass arguments... pls send an example code
as to how to pass arguments to a method using remote object

i have a class as follows
 
class A
{
  public int func1(int i, string st)
  {
     .......
  }
}
----------------
i created a remote object like...

<mx:RemoteObject source="A" id="remot">
  <mx:method name="func1" result=""/>
</mx:RemoteObject>

and made a call to this method as

function getReply()
{
  remot.func1(1,"amit");
}

but was not successfull.. it gave an error cannot invoke method func1









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to