Pass bounded parameters to RemoteObject : RemoteObject « Development « Flex






Pass bounded parameters to RemoteObject

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>

   
    
    
    
    
    
    
    
  








Related examples in the same category

1.Feed returning value from RemoteObject to DataGridFeed returning value from RemoteObject to DataGrid
2.Calling RemoteObject components in ActionScript
3.Call remote method with RemoteObjectCall remote method with RemoteObject
4.Convert returning value from RemoteObject to ArrayCollectionConvert returning value from RemoteObject to ArrayCollection
5.RemoteObject Result EventRemoteObject Result Event
6.RemoteObject With BindingsRemoteObject With Bindings
7.Remote Object Explicit ArgumentsRemote Object Explicit Arguments
8.Remote Object with Multiple MethodsRemote Object with Multiple Methods