Quantcast
Channel: Scoreoid Support Wiki » Open Source Examples
Viewing all articles
Browse latest Browse all 12

Scoreoid AS3 Encryption Wrapper

$
0
0

A simple open source AS3 Scoreoid encryption wrapper done by Alex Bogartz from Makai Media Inc.

Big thanks to Alex Bogartz for releasing this example. Download the wrapper here or get it from GitHub, usage example is located at the class comments.

But as you can see it’s very simple to use

public function getGame():void
{
    var scoreoidEnc:ScoreoidEncryption=new ScoreoidEncryption(apikey,gameID,key)
    var params={limit:3, order_by:"score",order:"desc"}
    scoreoidEnc.sendData("https://www.scoreoid.com/api/getScores",params)
}

public function submitScore(score:Number):void
{
   var scoreoidEnc:ScoreoidEncryption=new ScoreoidEncryption(apikey,gameID,key);
   var params={username:user.name, score:score}
   scoreoidEnc.sendData("https://www.scoreoid.com/api/createScore",params)
}

Fork me on GitHub


Viewing all articles
Browse latest Browse all 12

Trending Articles