I uploaded a simple game to see if I could get the API to work with Flash MX, despite it supposedly being for ‘AS 2.0’.
At first glance it seemed to work fine, but though it recorded 100 clicks for each of my games at first (it takes 10 clicks to complete a game), the ‘totalClicks’ stat soon started acting up. Refreshing the scores window after each click, I find it’s remaining static for about 5 clicks, then jumping upwards 330-700 points.
And yet, the .swf hasn’t altered and my code looks like:
onClipEvent (mouseDown) { _root.kongregateStats.submit(“totalClicks”,1); //other, un-related stuff }
Is it possible that my using Flash MX is the problem? Or are there any known problems with the add stat system?
I also got a highscore of 0, but that’s my fault (unrelated problem – could be uploaded before initialisation by right-click-playing).