Forum ActionScript 3.0 save with BigDB

Problems and discussions relating to ActionScript 3.0 here.

save with BigDB

Postby aldo » March 15th, 2014, 10:30 am

Hello i have try many time to make save with BigDB but is so hard i have read and tutorials here but i don't have understand nothing :/ so can anyone make a simple save example round when click button add 1 to round...
i hope for you have understand this
Thank you.
aldo
 
Posts: 12
Joined: August 11th, 2013, 1:56 pm

Re: save with BigDB

Postby robscherer123 » March 16th, 2014, 1:10 am

Do you have any examples of your code? If you have a database object loaded, all you need to do is call the save() method on it.

So loading a database object from a table named "roundTable" and the key being "round4", and then incrementing the property "theRound" of the object would look something like this to save it.


Code: Select all
client.bigDB.load("roundTable", "round4", onRoundLoaded);

function onRoundLoaded(_dbObject:DatabaseObject):void {
     _dbObject.theRound++;
    _dbObject.save();
}
robscherer123
Paid Member
 
Posts: 313
Joined: December 12th, 2012, 8:46 pm


Return to ActionScript 3.0



cron