• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

7. Flash Remoting and Java > 7.5. Datatype Conversions

Datatype Conversions

The Flash Remoting gateway translates ActionScript objects to Java objects when passing ActionScript objects as method parameters for Remoting service method calls. When it gets the results of the service call, the gateway translates the Java object results to ActionScript objects for Flash. It does these translations regardless of the service type and according to the mappings listed in Tables Table A-3 and Table A-4 in Appendix A.

There are specialized behaviors in these translations that are worth describing here.

ActionScript-to-Java Data Conversion

The Remoting gateway converts objects from ActionScript to Java arbitrarily deep. This means that a graph of nested objects in ActionScript will become a graph of nested objects in Java, converted according to the mappings listed in Table A-3. Because the gateway traverses nested ActionScript objects to do the conversion, it is possible to cause a java.lang.StackOverflowException in the gateway by passing objects with recursive references. This example shows one way to get into trouble:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint