setuserdata doesn't work

ia.studioia.studio said

a long time ago | Post #1
I have the api here's my code

import Nonoba.api.*

NonobaAPI.SetUserData(stage, "ia_123", "asde", function(response:String){
switch(response){
case NonobaAPI.SUCCESS:{
trace("Data successfully stored on the server.")
break;
}
case NonobaAPI.NOT_LOGGED_IN:{
trace("The user is not logged in.")
break;
}
case NonobaAPI.ERROR:{
trace("An error occurred.")
break;
}
}
})

ChrisChris said

a long time ago | Post #2
What do you get back, an error or?

Notice that you will get an error when testing locally!
The system does not really work outside nonoba or the nonoba game wrapper.

Here is my little test file for seeing if everything is working http://nonoba.com/chris/api-test and it returns success on setUserData, hence the system is working.

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.37.0021ms on SERVER34097