Mega Code Archive

 
Categories / Flex / Development
 

Pass bounded parameters to RemoteObject

<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">   <mx:RemoteObject id="myRemoteObject" destination="helloClass">     <mx:method name="concatValues">       <mx:arguments>         <val1>{fnameInput.text}</val1>         <val2>{lnameInput.text}</val2>       </mx:arguments>     </mx:method>   </mx:RemoteObject>   <mx:Form>     <mx:FormItem label="First Name:">       <mx:TextInput id="fnameInput"/>     </mx:FormItem>     <mx:FormItem label="Last Name:">       <mx:TextInput id="lnameInput"/>       <mx:Button label="Send Args" click="myRemoteObject.concatValues.send()"/>     </mx:FormItem>   </mx:Form>   <mx:Label text="{myRemoteObject.concatValues.lastResult}" fontSize="14" fontWeight="bold"/>    </mx:Application>