Not sure how that works and would I need it if I am not saving the file to a SharedObject? I am trying to save a CustomData class to a sqlite database. So I am trying to convert to a bytearray and then string.
So that if the user opens the app say a week later they can pull the object from the db and the app will work. Jason --- In flexcoders@yahoogroups.com, Alex Harui <aha...@...> wrote: > > Did you call registerClassAlias or use [RemoteClass] metadata? > > 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: Wednesday, October 28, 2009 3:40 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] bytearray.readObject doesn't convert my objects back > > > > So I am using > > var myArray:Array = [someObjectOfTypeObject, someOtherObjectOfTypeObject ]; > > bytearray.writeObject(myArray); > > var blah:Array = bytearray.readObject(); > > Blah comes back with two Objects but not someObjectOfTypeObject they come > back with generic "Objects" and no data inside? > > Anyone have a clue on this? someObjectOfTypeObject and > someOtherObjectOfTypeObject are of a special type of Class in my app so > someOtherObjectOfTypeObject:FooClass. > > Why doesn't it put them back as the correct type? >