I'm having issues saving, then retrieving sharedObject data.
For example if I make a shared object:
var myData:SharedObject = SharedObject.getLocal("myData");
Then, I make an object, in this case, a "feathers" listcollection object
var lc:ListCollection = new ListCollection()
then assign it:
myData.data.lc = lc;
ok now, if i don't restart the phone (i'm working on android) and I assign the saved listCollection to listCollection var and it works fine like this:
var lc:ListCollection = myData.data.lc as ListCollection;
but if I restart the phone and do this:
var lc:ListCollection = myData.data.lc as ListCollection;
it won't recognize it as a "ListCollection" even if i cast it. It says that it was saved as an "Object"
So basically it's not saving the dataType through a restart. But if I load it before a restart it works...
Any ideas why SharedObject is not working? It works fine with typical objects. Is there a better way I can save data locally and retrieve it? WHy would it change the data type?