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




SPONSORED LINKS
Computer software testing Macromedia flex Development
Software developer


YAHOO! GROUPS LINKS




Reply via email to