title: How does [RemoteClass] work in Flex Actionscript can I use it for custom data-binding?
body: <p>Actionscript supports a [RemoteClass] metadata tag that is used in BlazeDS to provide data-binding hints for marshalling AMF binary objects from Java to BlazeDS.</p>
  
  <p>For example:</p>
  
  <p><strong>Java:</strong>
      package sample;</p>
  
  <pre><code>public class UserInfo
  {
      private String userName;
  
      public String getUserName()
      {
          return userName;
      }
  
      public void setUserName(String value)
      {
          userName = value;
      }
  }
  </code></pre>
  
  <p><strong>Actionscript:</strong></p>
  
  <pre><code>[Bindable]
  [RemoteClass(alias="sample.UserInfo")]
  public class UserInfo
  {
      public var userName:String=”";
  }
  </code></pre>
  
  <p>How exactly is the [RemoteClass] implemented in the BlazeDS framework and could you override that behavior and provide a custom data-binding remoting framework (e.g. a JSON message passing system) that you could bind to the Actionscript [Bindable], [RemoteClass] class?</p>