Strange javascript error when using Kongregates API
Posted
by
Phil
on Game Development
See other posts from Game Development
or by Phil
Published on 2011-02-14T13:25:14Z
Indexed on
2011/02/14
15:34 UTC
Read the original article
Hit count: 345
In the hopes of finding a fellow unity3d developer also aiming for the Kongregate contest..
I've implemented the Kongregate API and can see that the game receives a call with my username and presents it ingame. I'm using Application.ExternalCall("kongregate.stats.submit",type,amount);
where type
is a string "Best Score" and amount
is an int (1000 or something).
This is the error I'm getting: You are trying to call recursively into the Flash Player which is not allowed. In most cases the JavaScript setTimeout function, can be used as a workaround.
callASFunction:function(a,b){if(FABrid...tion, can be used as a workaround.");
I'm wondering, has anyone else had this error or am I somehow doing something stupid?
Thanks!
© Game Development or respective owner