Adobe AIR Native Extension For Chartboost Advertise Network

This is our first post and there are chances of mistakes so please bear with me.

We got a project from a client to create an ios game from a flash action script 3.0 game. He have bought the game code and given us to modify it so it can be played back on iPhone and iPod. This was not a big deal for a company like us. We made the game and it got approved straight away. So we got another project with a new requirement of displaying ads from chartboost. We have read through Adobe forums and find out about the Native Extension so we made a deal with client.

We thought it would be an easy job but as we dig into creating NE, Native Extension, we find out lots of difficulties. We first contacted to ChartBoost if they already have any solution for games developed in Flash and ported for iOS. Their answer was a “NO”. So we decided to develop it in our lab. Next trouble was to combine static library from ChartBoost with NE we wanted to create. Salil worked on that problem and as we are in different timezones I had to work during nights for testing. Salil has wrote a post about it here.

My Brother have developed .a file using ChartBoost SDK and I have developed .swc component to be used inside the game. So to compile .ane file I have to get library.swf from the swc file and send to him so he can compile .a file using swc and library.swf and generate .ane file. He then send .ane file back to me so I can compile the game using that .ane file.  After a week we got it working perfectly and the game showing ChartBoost ads. We submit the game and it got approved. Cool isn’t it.

Here are the files. Create ane file using adt compiler and do the following
1. Import swc file in your game
2. Ad the following code to the game
var _chartboostExtension:ChartBoost = new ChartBoost();
_chartboostExtension.startAndShowChartboost(“Your App Id”,”Your App Signature”);

Due to work load we can not provide support for this. Please leave your message and we will try to help you out.

Thanks for reading though. I hope it was not a bad experience 🙂

  1. Chartboost ANE

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Trackbacks and Pingbacks: