Strange javascript error when using Kongregates API
- by Phil
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!