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

Reply via email to