I am trying to figure out how to use remoteObject in such a way that the
parameters passed to the remote function come from an argument array as
shown below. What is the appropriate way to do this?

Hank

     function asynchGet(type:String,
                          destination:String,
                          funcName:String,
                          resultHandler:Function,
                          faultHandler:Function,
                          argArray:Array):void{

           var ro:RemoteObject = new RemoteObject();
           ro.destination = destination;

          //************ can I do this below line?
           ro["funcName"].addEventListener("result",resultHandler);

           ro.addEventListener("fault", faultHandler);

          //************ I know the below line isnt right but am trying to
figure out what is
            ro["funcName"].apply(argArray);
       }

Reply via email to