Re: 'implements Serializable' versus 'extends ASObject'
Todd Hivnor <[email protected]>
| Newsgroups | gmane.comp.java.openamf.user |
|---|---|
| Message-ID | <[email protected]> |
Troy Gardner wrote:
>look over the archives, and read the docs on object mapping in the /doc/ in the
>CVS download. You'll need to change the openamf-config.xml amoung other things.
>
>There is no need to extend ASObject to get types to map correctly.
>
>
Oh, things are starting to work.... I needed to add mappings to
openamf-config.xml. Something like
<custom-class-mapping>
<java-class>com.example.Person</java-class>
<custom-class>com.example.Person</custom-class>
</custom-class-mapping>
It seems odd that I need to add this, since the package names are the
same in Flash and Java. But hey, it works.
I don't use ASObject at all, my Java objects just implement
Serializable, and define appropriate getters and setters. I also define
a no-arg constructor for my Java object.
I'm still having some trouble, not all my objects seems to be
deserializing correctly in Flash. The problems occur when I have
subclasses. But I've probably done something silly somewhere.
Troy: thanks for posting /docs/understanding.htm to CVS. I had the
source from RC11, but that doc wasn't included.
- Todd
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl