ASTranslator provides JavaBean-style mapping between Java objects in any J2EE application server and ActionScript objects in Flash MX when used with Macromedia Flash Remoting MX.
This method attempts to create a Java object from an ActionScript object that is
supposedly (according to the Macromedia AMF rules) alread the appropriate Java
object.
Given an Object, toActionScript creates a corresponding ASObject
or Collection of ASObjects that maps the source object's JavaBean
properties to ASObject fields, Collections and Sets to
ArrayLists, and all Numbers to Doubles while maintaining object
references (including circular references).