Cannot get score api to work
Chris said
2 months ago | Post #2Remember to include Nonoba.api.NonobaAPI in the same frame.
hourang said
2 months ago | Post #3 | in reply to #2ok where in the documentation does it say to do that? and what is the exact code to put in? i appreciate your help :)
Chris said
2 months ago | Post #4Well in general you need to include the code you are to use :)
import Nonoba.api.NonobaAPI;
At the top of your keyframe should do the trick.
Make sure that the Nonoba folder is located in the same folder as your fla file.
import Nonoba.api.NonobaAPI;
At the top of your keyframe should do the trick.
Make sure that the Nonoba folder is located in the same folder as your fla file.
hourang said
2 months ago | Post #5not usually with as2. and i do a lot of class stuff.
but thanks that works great :)
but thanks that works great :)
Chris said
2 months ago | Post #6My pleasure :)
Reply to thread
Sign up now to reply to threads
hourang said
2 months ago | Post #1NonobaAPI.SubmitScore("totalscore", _global.totalscore, function(response:String){
switch(response){
case NonobaAPI.SUCCESS:{
trace("The score was submitted successfully")
break;
}
case NonobaAPI.NOT_LOGGED_IN:{
trace("The user is not logged in")
break;
}
case NonobaAPI.ERROR:{
trace("An error occurred.")
break;
}
}
});