PDA

View Full Version : Integrating HallPass' score service in AS3


Megadev
04-30-2008, 05:50 PM
Hi everyone,

I'm trying to add HallPass' high score service to my game, but it's just not happening. I'm developing in Flex Builder 2, writing in AS3. Here's the line of code I've dropped in:

_root.HPScoreService.postScore( score, "Easy" );

The error I'm getting is:

"Access of possibly undefined property HPScoreService through a reference with static type Class."

What I find odd about HallPass' score submission system is that no API needs to be installed, unlike those of Kongregate and MindJolt. Obviously I'm going slightly wrong somewhere, can anyone help?

Cheers,

Mike.

TotalReview
04-30-2008, 06:44 PM
_root.HPScoreService.postScore(score,"easy");

Maybe you should take out the spaces? Also, lowercase the "e" in easy.