The problem is that I am unable to load this "Class" information from the "Character" object using the DatabaseObject given to me by the callback function for loadMyPlayerObject. Here is the code I am using...
- Code: Select all
public function MenuState(client:Client)
{
characterInfo = new Label("",12, TextFormatAlign.CENTER)
client.bigDB.loadMyPlayerObject(loadPlayerSuccess)
}
private function loadPlayerSuccess(ob:DatabaseObject):void
{
characterInfo.text = "Class: " + ob.Character.Class
}
I get a " A term is undefined and has no properties." error in FlashDevelop. I have looked at the BigDB pages and examples but I can't figure out what Im doing wrong. What am I missing?