1
\$\begingroup\$

I have made flash game and I want to show a leader board in that game. I have uploaded my game to kongregate.com.

I have made a scoreboard there with the name of overLoadScore (overload is the name of my game). i dragged an instance of API Loader component.

in my Main.as file I have the code.

var scoreBoard:ScoreBoard = new SoreBoard();
scoreBrowser.scoreBoardName = "overLoadScore";
scoreBrowser.loadScores();
scoreBoard.period = ScoreBoard.ALL_TIME;

i am getting the error call to a possibly undefined method ALL_TIME with reference to static type class ScoreBoard.

although i have provided correct API ID and encryption key.But in the output window i am getting the message. [Newgrounds API] :: No API ID entered in the API Connector component.

and i have created the scoreBoard which i mentioned earlier but what is this

[Newgrounds API] :: No scoreboards created for this movie.

\$\endgroup\$

closed as off-topic by bummzack, jhocking, Anko, Josh Jun 22 '14 at 20:22

  • This question does not appear to be about game development within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 3
    \$\begingroup\$ This question appears to be off-topic because it is about writing code for you. \$\endgroup\$ – bummzack Jun 21 '14 at 12:58
  • \$\begingroup\$ If you simply want example code, well there's already example code in kongregate's documentation. A question that would be on-topic is if you actually tried to implement their code and encountered a specific problem. \$\endgroup\$ – jhocking Jun 21 '14 at 14:40
  • \$\begingroup\$ @jhocking i have edited the question please can u help \$\endgroup\$ – user3536228 Jun 21 '14 at 15:04
  • \$\begingroup\$ Wait, at first you mention Kongregate, then you say Newgrounds. What platform are you targeting now? What does their documentation say? \$\endgroup\$ – Anko Jun 22 '14 at 7:58
  • \$\begingroup\$ @Anko sorry my mistake it is Newgrounds. i am targetting newgrounds and i am following their doccumentation but cant get the result \$\endgroup\$ – user3536228 Jun 22 '14 at 8:18
0
\$\begingroup\$

change the line 1 with

var scoreBrowser:ScoreBrowser = new ScoreBrowser();

actually i mingled scoreBrowser and scoreBoard.

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.