# Multiple arguments function onResult

**URL:** https://forum.kirupa.com/t/multiple-arguments-function-onresult/314674
**Category:** Uncategorized
**Created:** [October 6, 2010, 2:30am UTC](https://forum.kirupa.com/t/multiple-arguments-function-onresult/314674 "2010-10-06T02:30:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Cabby](https://avatars.discourse-cdn.com/v4/letter/c/ce7236/32.png) [@Cabby](https://forum.kirupa.com/u/Cabby)
#### Post date: [October 6, 2010, 2:30am UTC](https://forum.kirupa.com/t/multiple-arguments-function-onresult/314674/1 "2010-10-06T02:30:21Z")

</div>

Status:  
I have a main class that is running an external sub class which loads my data (loads data via flash remoting on a ColdFusion server). No problems loading the data; however, I am trying to run a function from the main class on the sub class function onResult. I do not have problems running functions in the sub class in general, only in the responder result function.

Problem:  
My problem is that I can’t pass the main class through the function onResult because I get a error with the arguments.

Here’s what some of the code look likes:

function init(){

```
 myService2.connect("URLgateway");
        
 var responder:Responder = new Responder(onResult, onFault);
        
 myService2.call("engineGetID.test", responder);

```

}

function onResult(result:Object, myData){  
//result traced here  
}

Anyone know how I can run a main class function in the function onResult?
