Saving custom classes into SharedObject

Here’s what I’m trying to do: save a custom class (“CClass”, for example) into a shared object. After some forum-hunting, i found how to get the SharedObject class to store the data as the custom class, but when i pull the data from the SharedObject, all the values of my custom class are set to null.

Code for saving my class is:

registerClassAlias("CClass", CClass);
saveGameData = SharedObject.getLocal("saveSlot1");
saveGameData.data.myClass = myCClass; //myCClass is already defined, just not posted. 
saveGameData.flush();
saveGameData.close();

Now, before i close() the save data, if i put a breakpoint and check the values in the save data, my custom class values are displaying correctly. Now, when I load the shared object:

registerClassAlias("CClass", CClass);
//load data
            loadGameData = SharedObject.getLocal("saveSlot1");

If I place a breakpoint further down the code, and check loadGameData.data.myClass 's values, it is recognized and organized as my custom class, but all the values are set to null! any help?