Game Development Reference
In-Depth Information
Working with Adobe Flash Platform Services
Late in 2009, Adobe announced that it was getting into the business of distributing Flash-based
applications. It offers three very interesting services that Flash game developers might find useful:
Distribution, Social, and Shibuya.
Distribution appears to be Adobe's answer to Mochi Media. In a partnership with Gigya, Adobe
has created a Share menu that you can include in your applications. This Share menu opens up the
ad serving, tracking and promotion capabilities of Adobe's service. Promotion appears to be a
paid service, although ad serving is opt-in and can be used to with services like Mochi. Tracking
capabilities are similar to Mochi's offerings but are most likely powered by Adobe's acquisition of
Omniture, one of the world's leading web analytics providers. You can find out more about
Adobe's Distribution service here:
http://www.adobe.com/devnet/flashplatform/services/distribution/
Social is an API that opens up authentication and profile-data sharing through multiple social
networks. Currently, Facebook, MySpace, Twitter, Yahoo, Google, and AOL are supported
through this API. You can download Adobe's Social service library here:
http://labs.adobe.com/downloads/social.html
Shibuya is Adobe's system (in beta) for distributing and monetizing AIR-based applications.
Adobe AIR is a technology that allows Flash applications to be converted into desktop
applications for popular platforms such as Windows and Mac OS. Shibuya allows for try and buy
licensing model for these AIR applications. You can find more information about Adobe Flash
Platform Services here:
http://www.adobe.com/devnet/flashplatform/services/
Securing your viral games
Before we leave the topic of general viral Flash games and get into some hard core code, there
are a couple more topics we need to cover: site locking and encryption.
Using site locking
As we said previously, site locking is a way for game developers to make sure a game can only
be played on certain web sites. While we don't have any site-locking code in our game
framework, here is some sample code that will site lock a game for you. Here is an example of
how such code might be implemented:
var validDomainString:String="8bitrocket.com";
var isValidDomain:Boolean=false;
var currentDomain:String = this.root.loaderInfo.url.split("/")[2];
trace("currentDomain=" + currentDomain);
if (currentDomain.indexOf(validDomainString) == (currentDomain.length -
validDomainString.length)) {
isValidDomain=true;
}else{
isValidDomain=false;
Search WWH ::




Custom Search