Cannot get score api to work
Chris dijo
hace mucho tiempo | Publicación #2 Remember to include Nonoba.api.NonobaAPI in the same frame.
hourang dijo
hace mucho tiempo | Publicación #3 | en respuesta a #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 dijo
hace mucho tiempo | Publicación #4 Well 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 dijo
hace mucho tiempo | Publicación #5 not usually with as2. and i do a lot of class stuff.
but thanks that works great :)
but thanks that works great :)
Chris dijo
hace mucho tiempo | Publicación #6 My pleasure :)
Contestar al tema
Regístrate ahora para responder a éste tema
hourang dijo
hace mucho tiempo | Publicación #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;
}
}
});