Samuel R. Neff wrote:
> Is there any way to run custom code related to AMF serialization without
> writing everything from scratch using IExternalizable? From the docs it
> seems like the only option is to do it all yourself or do nothing
> yourself--no middle ground.
The ByteArray native class supports AMF serialization/deserialization of
raw byte data via its readObject() and writeObject() methods. You can
also specify whether to use AMF0 or AMF3 as the serialization format.
I've used this previously to read/write to legacy raw AMF-encoded data
files that I created previously using Flash 8 SWFs and a custom server
back-end.
It's pretty low-level and I'm not sure if going this route is any better
suited for what you're doing, but it's worked well for me in the past
when I needed something in between basic AMF serialization and writing
full-blown file format parser/emitters.
Jim Cheng
effectiveUI