mobile to all programming suit.

Play It
Use It
Go down the rabbit whole...
Download for Android devices:

1. Load Library

To have a high start, we prepared library, which allows you easily plug mobile gamepad controller into your game.

Download D GAMEPAD.SWC library, and link it to your project in flash pro, flex sdk, or ant-based project!

2. Implement API

GAMEPAD signalizes your application by calling appropriate methods of your special class. You can have many of those for multiplayer game. Check out L IGamepadListener for details.

3. Connect to Device!

When you are ready to start game - just create instanse of L DeviceGamepad:

var gamepad:DeviceGamepad = new DeviceGamepad( this, stage );

This will spawn PIN reader popup, and will manage connection re-spawning this window when connection is lost. Next code will prevent reconnection when game is over:


See methods of DeviceGamepad for additional functionality.


See L Hungry Hero game integration with gamepad. See last commit for particular changes.

Check out sample project about draon adventures: link is coming up

Client Full Stack Gamepad library.

Mobile application.
D Mobile Client


game application





Cell Phone

Deployed in runtime mobile application


Mobile client application


Now, you will follow the true story about mobile and computer integration.
Use navigation below to change slides. You can hover higlighted words to see, what is it about. Try it now, and start the story!

Remote Application

Each application starts with writing and embeding Mobile Application. It is delivered together with your main, game application. When computer connects cell phone, this Mobile Applications is transfered to cell phone and started - it becomes Deployed Mobile Application.
To communicate with cell phone functionality (like accelerometer), and to be able to pass messages to host game application, deployed mobile applications uses PAD Library.

Transfering Data

To help You transfer client application onto the cell phone, there is a library for computer program - GAME library. You should give it a PIN to find launched on cell phone client application. After this - you can send and receive data to and from cell phone.
GAME library takes care of transferring mobile application onto cell phone.

Helper libraries

In order to get the PIN of mobile client application, your game should prompt user about it. This should be a nice GUI interface. To make it possible to reuse and share this kind of interface - there are PIN-reader libraries.
Handling comunication with remote application using L ByteArray is not an easy job. That is why, this kind of functionality is hidden inside message interpret libraries.

Suit Library

It is not that easy to understand all the details of Computer and Cell Phone communication from scratch.
To make it easy to start - there are some full-stack libraries, which take care of all the core aspects of connecting, launching remote application and managing communication.
While working with these samples, you will wonder on how to change some aspects of game process. This is the place where you will start playing with bricks introduced here!

Bright Future

In the end - Mobile Client Application is not mandatory piece of software. You can reimplement it, put custom graphics and permit only special applications. This will allow you to interconnect multiple devices together under your own rules!