Links
-
View Demo
Official Documentation
Download SWC Library version 1.0.6
Download Demo Source Code
Note: Currently Andrograde API only works with Actionscript 3
will@andrograde.com
Average ROI Comparison
1. Andrograde API - $1 / 550 plays
2. Kongregate - $1 / 1065 plays
3. Game Jacket - $1 / 2000 plays
4. MochiAds - $1 / 2500 plays
2. Kongregate - $1 / 1065 plays
3. Game Jacket - $1 / 2000 plays
4. MochiAds - $1 / 2500 plays
Diversify and get MORE
You can combine Andrograde with many popular ad networks:
1. Andrograde API + Kongregate - $1 / 362 plays
2. Andrograde API + Game Jacket - $1 / 431 plays
3. Andrograde API + MochiAds - $1 / 450 plays
2. Andrograde API + Game Jacket - $1 / 431 plays
3. Andrograde API + MochiAds - $1 / 450 plays
How It Works
1. You offer your game for free and create extra bonus features that cost Andrograde Points to get
2. Players buy Andrograde Points which they can use on ANY game with the Andrograde API integrated in it
3. Player plays your game and thinks your extra bonus feature is cool and buys it using their Andrograde Points
4. You get credited for each purchase in your game and get a check at the end of each month
2. Players buy Andrograde Points which they can use on ANY game with the Andrograde API integrated in it
3. Player plays your game and thinks your extra bonus feature is cool and buys it using their Andrograde Points
4. You get credited for each purchase in your game and get a check at the end of each month
Why Does it Work This Way?
Bundling transactions into lump sums minimizes the overhead of credit card and other types of payments. Utilizing this bundling with a virtual currency system allows people to enact microtransactions with minimal cost and pass those savings on to the customers.
Alternative Uses
You can also offer a free version of your game which players can then buy the premium version (see API.upgrade)
1. Player plays your game and thinks it's awesome
2. You display a button or screen promoting the player to buy the full version of your game
3. Player decides to buy the game, clicks on your button and is directed through PayPal to buy the game
4. Player logs into the game again and now has the full version of your game
5. You are credited for the player's purchase of your game and get a check at the end of the month
1. Player plays your game and thinks it's awesome
2. You display a button or screen promoting the player to buy the full version of your game
3. Player decides to buy the game, clicks on your button and is directed through PayPal to buy the game
4. Player logs into the game again and now has the full version of your game
5. You are credited for the player's purchase of your game and get a check at the end of the month
Andrograde API can also be used to custom stat tracking. Custom stats can be set to maximum (high scores), minimum (golf like score tracking), add (cumulative points), subtract or replace (see User.setStat and User.getStat). Query the top scores or bottom scores to display your own custom leaderboards in game however you want (see API.getHighScores).
How to integrate Andrograde API
1.Upload your game to Andrograde (don't worry, it will NOT be live).
2.You will get an API Code for your game
3.Add the Andrograde SWC Library to your game project
In Adobe CS3
a.Copy the SWC file into the Configuration/Components directory
b.Restart Flash
c.The component's icon should appear in the Components panel
In Flash Develop
a.Go to Project -> Properties -> Compiler Options
b.Click on SWC Include Libraries, then click on ...
c.Enter the full path to the SWC including the name of the SWC file
4.Integrate the Andrograde API code in your game (see below)
5.Upload the new version of your game with the Andrograde API integrated into it
6.Test your game by going to 'View Game'
7.If the API code has been properly integrated, the API not implemented beside your game in the upload page will disappear and show how many purchases you have gotten instead
8.Click 'Edit Game' and Check 'Live' then click 'Done Editing' to list your game on the Andrograde
9.Spread your game throughout the net, the Andrograde API will work on any site!
2.You will get an API Code for your game
3.Add the Andrograde SWC Library to your game project
In Adobe CS3
a.Copy the SWC file into the Configuration/Components directory
b.Restart Flash
c.The component's icon should appear in the Components panel
In Flash Develop
a.Go to Project -> Properties -> Compiler Options
b.Click on SWC Include Libraries, then click on ...
c.Enter the full path to the SWC including the name of the SWC file
4.Integrate the Andrograde API code in your game (see below)
5.Upload the new version of your game with the Andrograde API integrated into it
6.Test your game by going to 'View Game'
7.If the API code has been properly integrated, the API not implemented beside your game in the upload page will disappear and show how many purchases you have gotten instead
8.Click 'Edit Game' and Check 'Live' then click 'Done Editing' to list your game on the Andrograde
9.Spread your game throughout the net, the Andrograde API will work on any site!
Adding the Andrograde API Code
//Note: you can import Andrograde.*; so you don't need to prepend Andrograde. on every call.
var AndrogradeAPI:Andrograde.API; AndrogradeAPI= new Andrograde.API("your API code"); AndrogradeAPI.addEventListener(APIEvent.INIT, APILoaded); addChild(AndrogradeAPI);
//Note: if you are using Flex you may have to do rawChildren.addChild instead
var AndrogradeAPI:Andrograde.API; AndrogradeAPI= new Andrograde.API("your API code", true);
// the second parameter turns on debugging
AndrogradeAPI.addEventListener(APIEvent.INIT, APILoaded); addChild(AndrogradeAPI); addChild(AndrogradeAPI.debugDisplay);
// optional to display the debug log in your game
public function APILoaded(e:Andrograde.APIEvent):void { if (!AndrogradeAPI.user) { AndrogradeAPI.login(200, 300);
// 200,300 is where to display the login dialog
AndrogradeAPI.addEventListener(Andrograde.APIEvent.LOGIN, loginCheck); }
// else proceed as normal, user is already logged in
} private function loginCheck(e:Andrograde.APIEvent):void { if (e.data == true) {
// login succeeded
} else {
// login failed or was cancelled
} }
Note: You can use the test account to login and test stats and purchases
You can also register a new user. You can check whether a call was a success or not by checking the APIEvent.data member
user name: TestUser password: test
You can also register a new user. You can check whether a call was a success or not by checking the APIEvent.data member
public function register():void { AndrogradeAPI.register(200, 300); AndrogradeAPI.addEventListener(Andrograde.APIEvent.REGISTER, registerCheck); } private function registerCheck(e:Andrograde.APIEvent):void { if (e.data == true) {
// registration succeeded
} else {
// registration failed or was cancelled
} }
somevalue= AndrogradeAPI.user.getStat("name of stat"); AndrogradeAPI.user.setStat("name of stat", some value, User.STAT_REPLACE);
// there are other ways to set this as well
if (!AndrogradeAPI.user.owns("feature name")) AndrogradeAPI.buy(x, y, amount of points, "feature name");
//Will pop up a dialog at x,y with an option for the user to buy that item
AndrogradeAPI.addEventListener(Andrograde.APIEvent.BOUGHT, function buy_complete(e:Andrograde.APIEvent):void { trace("buy item returned: " + e.data); });
Welcome to Andrograde!
Your source to play fun online games! Developers, make sure to check out Andrograde API, a revolutionary new system for you to get cash for your Flash games with virtual goods and virtual currency and easily add support for custom leaderboards. Andrograde API puts you in control of your revenue and has higher payout than MochiAds, GameJacket, Kongregate and Nonoba.
Contact Us/Site Index
Copyright © 2008 Andrograde
Website designed by SimpleByte
Website designed by SimpleByte
