In part one of this series, you created the Actionscript 3 library, Objective C static library and wrapped it all together in a beauteous Adobe Native Extension (ANE) for use in your Flash mobile app. By now, you’re able to connect to Apple’s Game Center, but you don’t know it yet. This post will will show you how to make use of your ANE to invoke the loginUser, showLeader, and showAchievements methods in your native library.
At this point, you should have created the BazingaANE.ane (or whatever you named yours) and you’re ready to use it in your app.
With the advent of Adobe Native Extensions (ANE’s) Flash platform developers have been fully unleashed upon the mobile OS scene. Your Flash apps now have full access to all native features through ANEs. This two part series will get you ready to integrate your own Flash games with Apple’s Game Center so you can start concentrating on making your fortune.
For brevity, this post is only going to show you how to do three things with Game Center, authenticate the user, show leaderboards and show achievements. I noticed during my Google sessions, there are many other people looking for the same integration with Game Center ANEs for Flash mobile games, so this will show you the bridge to achieve that goal, and the rest of the implementation is up to you. By the end of this post, you’ll understand how to submit achievements or scores, etc, all the things we’re not doing in this post.
Because I can’t say this enough, I’ll post it in bold: IMPORTANT - You need a decent understanding of ANE creation in general and setting up apps with iOS Developer Portal and iTunes Connect for Game Center. Without those prerequisites, you won’t get much from this post.
Whatever, just show me the code!
Another voice for Adobe Flex and RIA Technologies
Thank you thank you! It’s good to be here. I finally got the cooler blog aggregated on MXNA. It’s been a bit slow trying to get listed, probably due to the holiday season but I’m here at last.
For those who don’t know, I’m the same guy who runs PXL Blog. The reason for this blog is 1. WordPress is much cooler than Nucleus CMS in my opinion, 2. I get to yak about other things in life than Adobe Flex, Flash, AIR, and other technologies, although you will find many code samples here.
Here are some of the better tutorials for Adobe Flex that I submitted for the Flex CookBook, and some Adobe AIR info:
- Creating a Center Registration Point in Adobe Flex
- Programmatic Button Skins in Adobe Flex
- Adobe AIR Beta 3 Descriptor File Porting