showShoutBox for as3

Subscribe to showShoutBox for as3 9 posts

avatar for azuana azuana 7 posts
Flag Post

It seems I’m getting an error when I try to display the shoutbox.

Using the box as follows:

kongAPI.services.showShoutBox(“[”+sTitle+"] "+sMessage);

Error is:
ReferenceError: Error #1069: Property showShoutBox not found on com.kongregate.as3.client.services.KongregateServices and there is no default value.
at domino.core::Globals$/publish()
at MethodInfo-365()
at MethodInfo-842()
at MethodInfo-891()
at domino.ui.component::Button/onMouseDownHandler()

 
avatar for UnknownGuardian UnknownGuardian 8130 posts
Flag Post

I don’t think you need special permission to access this API. Perhaps the user is a guest? Or kongAPI isn’t the exact kongAPI the documentation shows…

 
avatar for azuana azuana 7 posts
Flag Post

Is services correct?

com.kongregate.as3.client.services.KongregateServices indicate that my kongAPI variable is correct no?

 
avatar for Senekis93 Senekis93 4090 posts
Flag Post

varReturnedOnConnection.services.showShoutBox(optionalString:String=""):void

As UG said, make sure the user is not a Guest/you aren’t testing locally.

 
avatar for azuana azuana 7 posts
Flag Post

Just to be sure… do you mean that I should make sure I’m not using API_AS3_Local?

I don’t think I am…

Still getting this error. I’ll try forcing the API to null if it’s not available.

However is it expected to not have showShoutBox if your using the local api?

 
avatar for UnknownGuardian UnknownGuardian 8130 posts
Flag Post

Just ran a test. showShoutBox throws the following error when testing locally.

[Fault] exception, information=ReferenceError: Error #1069: Property showShoutBox not found on com.kongregate.as3.client.services.KongregateServiceShadow and there is no default value.

And just tested it online, it also throws an error:

ReferenceError: Error #1069: Property showShoutBox not found on com.kongregate.as3.client.services.KongregateServices and there is no default value.

I’ll leave a comment on the dev docs.

 
avatar for azuana azuana 7 posts
Flag Post

Thank you for confirming it!

I’ll disable this bit in my code for now.

:)

 
avatar for UnknownGuardian UnknownGuardian 8130 posts
Flag Post

Sure. I was able to do it real quick using QuickKong and a game that already is in production. It just required 2 lines of code to check.

 
avatar for UnknownGuardian UnknownGuardian 8130 posts
Flag Post

Anthony(Phoenix00017) just confirmed that this is currently on a request to use basis right now.