Alex, what else can I try? I have tried implementing IExternalizable in every class and it doesn't seem to work, I think I might be close as one class is causing me issue "Datalist". When I implement IExternalizable and flex starts decoding the bytearray it throws an error on "Datalist" constructor. It expecting one arguement in the constructor Datalist(name:String) and I guess Flex isn't passing it the arguement.
Jason --- In flexcoders@yahoogroups.com, Alex Harui <aha...@...> wrote: > > Yeah, I think that's because Proxy is an odd beast. It is dynamic and can > have "any" property and you're responsible for implementing all those methods > that help iterate the object. > > Alex Harui > Flex SDK Developer > Adobe Systems Inc.<http://www.adobe.com/> > Blog: http://blogs.adobe.com/aharui > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On > Behalf Of flexaustin > Sent: Friday, October 30, 2009 9:40 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: bytearray.readObject doesn't convert my objects back > > > > > Can't even use an JSON encoding > > at com.adobe.serialization.json::JSONEncoder/objectToString() > > jason > > --- In flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, > "flexaustin" <flexaustin@> wrote: > > > > What about using the JSONEncoder and JSONDecoder? Will I have the same > > issue? > > > > Jason > > > > > > > > --- In flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, > > "flexaustin" <flexaustin@> wrote: > > > > > > Just realized need return type. > > > > > > > > > --- In flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, > > > "flexaustin" <flexaustin@> wrote: > > > > > > > > Getting error > > > > 1144: Interface method readExternal in namespace > > > > flash.utils:IExternalizable is implemented with an incompatible > > > > signature > > > > > > > > > > > > public class Data extends EventDispatcher implements IExternalizable > > > > > > > > public function writeExternal(output:IDataOutput) { > > > > output.writeObject(_nodes); > > > > output.writeObject(_edges); > > > > output.writeObject(_span); > > > > output.writeObject(_groups); > > > > output.writeObject(_root); > > > > output.writeObject(_tree); > > > > } > > > > public function readExternal(input:IDataInput) { > > > > _nodes = input.readObject(); > > > > _edges = input.readObject(); > > > > _span = input.readObject(); > > > > _groups = input.readObject(); > > > > _root = input.readObject(); > > > > _tree = input.readObject(); > > > > } > > > > > > > > > >