Data Storage - Can't figure it out

mikomimikomi said

a long time ago | Post #1
Hi all

Apologies for the noobish first questions but I am struggling with implementing the data storage from the API. I have added the example code into my game and everything appears to integrate fine but when I compile the game it tells me an error has occured. I found some tutorials for other parts of the API and this appears ti be normal but even when the game is put online, nothing appears to happen, even with the code inserted. Presumably, users would need to register an account to save the data, etc, etc? Sorry about this, am just lost at the moment!

Any help would be gratefully recieved

ChrisChris said

a long time ago | Post #2
Can you give a bit more info on this? What error do you get, what happens when you put it online etc etc?
Post #3 deleted

mikomimikomi said

a long time ago | Post #4 | in reply to #2
OK, I think I am starting to understand this but I am still a bit lost. Before, I didn't really understand how the API actually worked but I followed one of the achievement tutorials and understand now - even though it may not look like anything is happeneing, in the case of an achievement, something is added to your nonoba account. Ok, so I have successfully implemented both a log in screen and an achievement into my game but I am still a little stuck on datastorage. I have inputed the code into their own frames (correctly, with the import command, etc) and to test the data storage I attempted to display the data I had stored as "somedata" - in this case I hoped to store a variable. Looking at the code you posted, Chris, for the score submit and the datastorage I placed this into my program:

"NonobaAPI.SetUserData("somedata", 10, function(response:String){
"

Unfortunately, this generates an error - is it not possible to store (numeric) variables? I also tried just using the example code you gave and attempted to display "somedata" in a text field but again, nothing appeared.

Again, many thanks for the help and advice - if nothing else I've figured out most of the other funtions...I think!

ChrisChris said

a long time ago | Post #5 | in reply to #4
What error do you got?

Reply to thread

Sign up now to reply to threads

Funkyball

funkyball.com is an independent gaming site where you can play both single- and multiplayer games for free.

Developer Tools

If you're a flash game developer, we've got some awesome tools to help you make even better games.

Great Games

Why not try some of the very best online flash games we've got, completely free?

Copyright ©2007-2012 Funkyball™ - All rights reserved.405.6007ms on SERVER34096