I'm just trying out to as simply as possible load a playerObject after I've connected with facebook (in handleConnect(client:Client)), input a var and then save it but i get the error: TypeError: Error #1006: Save is not a function.
Here's what I do:
client.bigDB.loadMyPlayerObject(function(obj:DatabaseObject):void{
obj.experience = 0;
obj.Save();
});
If i trace obj i get the following:
[playerio.DatabaseObject]
PlayerObjects["fb714236859"] = {
} (Version:1)
So loading seems to work.
Any ideas what I've done wrong?