- Code: Select all
public function Main()
{
this.Play_Buttons.addEventListener(MouseEvent.CLICK, gotoGame);
}
function gotoGame(event:MouseEvent)
{
}
function saveRounds(param1:Client):void
{
var client:* = param1;
client.bigDB.load("roundTable", "round4", onRoundLoaded);
}//end functions
function onRoundLoaded(_dbObject:DatabaseObject):void
{
_dbObject.theRound++;
_dbObject.save();
}
when click button play add + 1 to theRound and save it...