title: Flex 4 Remote Object Method
body: <p>I post this previously in Adobe Forum but haven't got any answers so far.</p>
  
  <p>How do I do this in Flex 4?</p>
  
  <pre><code> &lt;mx:RemoteObject id="srv" destination="product" channelSet="{channelSet}"
   fault="faultHandler(event)"&gt;
     &lt;mx:method name="getProducts" result="getProducts_resultHandler(event)"/&gt;
   &lt;/mx:RemoteObject&gt;
  </code></pre>
  
  <p>I got</p>
  
  <blockquote>
    <p>Could not resolve <code>&lt;s:Method&gt;</code> to a component implementation.</p>
  </blockquote>
  
  <p>When trying to do this</p>
  
  <pre><code> &lt;s:RemoteObject id="roMajor"
     destination="MajorSrv"
     fault="Alert.show('Remote Object Error')" &gt;
       &lt;s:Method name="AddMajor" result="roMajorResult(event)"/&gt;
   &lt;/s:RemoteObject&gt;
  </code></pre>
  
  <p>Thank you</p>