I don't know if it's possible, but I think you can use this myservice.getOperation(_somthing) to get/create an operation. You could call it with: myservice.getOperation(_somthing).send(... args);
On Fri, Sep 26, 2008 at 6:11 AM, timgerr <[EMAIL PROTECTED]> wrote: > Here is a Flex question that I have, > If I do this code: > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > layout="absolute"> > <mx:RemoteObject id="myservice" fault="faultHandler(event)" > showBusyCursor="true" source="tutorials.HelloWorld" destination="amfphp"> > <mx:method name="sayHello" result="resultHandler(event)" /> > </mx:RemoteObject> > > All works fine, but if a add a variable to the <mx:method name like this > private var _somthing:string = "sayHello"; > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > layout="absolute"> > <mx:RemoteObject id="myservice" fault="faultHandler(event)" > showBusyCursor="true" source="tutorials.HelloWorld" destination="amfphp"> > <mx:method name="{_somthing}" result="resultHandler(event)" /> > </mx:RemoteObject> > > I get an error for this <mx:method name="{_somthing}" > > How can I have <mx:method name= be a variable? > > thanks for the help, > timgerr > > > -- Haykel Ben Jemia Allmas Web & RIA Development http://www.allmas-tn.com

