You probably need to use registerClassAlias()

http://livedocs.adobe.com/flex/3/langref/flash/net/package.html#registerClassAlias()

and for complex objects perhaps also implement IExternalizable

http://livedocs.adobe.com/flex/3/langref/flash/utils/IExternalizable.html



----- Original Message ----
From: markflex2007 <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, August 25, 2008 11:14:14 AM
Subject: [flexcoders] Sqlite retrive to object


Hi,

I have saved a object to sqlite.

but I can not retrieve it back to same type of object.

I use the following code,but obj1 is null and obj2 have data.
but I need the data also save in obj1.

var obj1:userVO = new userVO();
var obj2:Object = new Object();

obj1 = result.data[ 0]["USER" ] as userVO;
obj2 = result.data[ 0]["USER" ]; 

Please help me and give me a idea how to fix it.

Thanks

Mark

    

Reply via email to