Hi,

The problem I am having is actually reading the custom types back 
into my flex app from the shared object.

They seem to save/flush fine but flex doesn't read them back in as 
serialized custom types????

I have an arraycollection of custom type LoginVO objects.

[ArrayElementType("com.databaseeditor.vo.LoginVO")]
public var loginArrayCollection:ArrayCollection;

I add a sample LoginVO object to the arraycollection and then run 
this code:

mySharedObject.data.loginArray = loginArrayCollection;
mySharedObject.flush();

I've used the registerclassalias method and when I call flush() on 
the shared object it writes the file fine and includes the class 
alias in the text. Here is the output file:

 ¿   "TCSO      logins   loginArray
Cflex.messaging.io.ArrayCollection     
3;com.databaseeditor.vo.LoginVOusernamepassword
server testusermypasslocalhost 


The problem is that when I close the application, reopen it, and read 
the sharedobject.data.loginArray property the arraycollection is 
there but my LoginVO custom types are now just Objects with an 
mx_internal_id property.

Why doesn't the arraycollection contain LoginVO types?

Is there something else I need to do when reading them back in?

Thanks
Mike



Reply via email to