warning: Creating default object from empty value in /home/mlange/codes.widged.com/modules/taxonomy/taxonomy.pages.inc on line 34.

Android

FishBoid, a mini-game for android Nexus One

First attempt at creating a mini-game with Flex on the nexus one.

Determine the direction of the fish by moving your device up and down and left and right.

The video was taken using some box contraption that ensures that the camera moves in parallel to the device, to ensure that the screen remains in focus. Any up and down or left and right movement appears weaker than it actually is.

API additions to use on the Android device

source: Mobile revolution by Serge Jespers

Gestures


public function init():void
{
Multitouch.inputMode = MultitouchInputMode.GESTURE;
logo.addEventListener(TransformGestureEvent.GESTURE_ROTATE, onRotate );
logo.addEventListener(TransformGestureEvent.GESTURE_ZOOM, onZoom );
}

privsource: Mobile revolution by Serge Jespers

Gestures


public function init():void
{
Multitouch.inputMode = MultitouchInputMode.GESTURE;
logo.addEventListener(TransformGestureEvent.GESTURE_ROTATE, onRotate );
logo.addEventListener(TransformGestureEvent.GESTURE_ZOOM, onZoom );
}

private function onRotate(evt:TransformGestureEvent):void
{
// pssst... you should try rotationX or Y
logo.rotation += evt.rotation;
}

Developing Android applications with Flash Builder

The first step is to install the AIR 2.5 sdk

Go to the page on Adobe AIR for Android at Adobe Labs. Signup for the prerelease.

Follow all the steps necessary to download the AIR 2.5 sdk. Unzip the archive. You should end up with a folder of the like:

AIR25_mac_sdk_20100517

Navigate to the sdks folder of FlashBuilder, within the Application folder.

/Applications/Adobe\ Flash\ Builder\ 4/sdks/

Flash Player 10 on Android

Quite gobsmacked. I have now Flex applications running on my Nexus one.

There were some rumours of Froyo only available in June. Then other rumours of it being already pushed over the AIR. But that appeared to be mostly for phones given to the Press.

Thanks to giz http://bit.ly/cF9os6 got froyo on the nexus1.

Once Froyo was installed, I had to point the browser on the device to the labs download page

http://labs.adobe.com/downloads/flashplayer10.html

Syndicate content
Powered by Drupal, an open source content management system