Android-AS3: Accelerometer

You bought an Android phone because you want to start developing a cool flash or AIR App for that device?
Or you just wondering how easy it is to develop an application for those target devices?

In the following series, I’m going to show you how to access those special properties that are available when developing for an Android or any other Flash / AIR powered device.

Today, we start with the Accelerometer API.

In this article I’m going to show you how to control a simple ball with the help of the accelerometer API. Clearly you could create a game like the well known Labyrinth available for the iOS or Teeter available on the HTC android devices very easy as soon as you know how to master the Accelerometer API.
» Read more…

AIR: Quick Hint: Suppress Keyboard Events

I’ve been lately working on a Multitouch Kiosk Project, in the upcoming days, I’ll be posting some of the quick hints I think they are worth sharing, some of them are simply good to know, others are braintwisting challenges I faced during the development.

Today, I would like to show you how to suppress certain Keyboard Events, let’s say you setup a kiosk application where the keyboard has to stay attached to the computer and available to the users, there are two ways you can prevent the application to be closed by a kiosk visitor:

A) You take hammer and hit the ESC key out of the keyboard
B) You write a simple small function that will take care of it.

I know I know option A is more fun, but we prefer going with option B.

So let’s have a look what we need to do: » Read more…

38. SFUG Usergroup Meeting

logo

The next SFUG (Swiss Flash User Group) takes place on the 4th of November 2010 with a bunch of interesting topics:

Topic 1: Adobe MAX 2010 review  (Marcel Vogt & Tiago Dias/ Publicis

Topic 2: Android AIR Development ( Sandro Ducceschi & Marcel Vogt/ Liip & Publicis )

Topic 3: Giroflex Multiscreen Case ( Tiago Dias & Marcel Vogt/ Publicis)

When: 4th. November 2010 / 19:00-22:00
Where:Publicis Werbeagentur AG, Stadelhoferstrasse 25, 8024 Zürich

More information about SFUG can be found on:
Adobe Groups
SFUG Site

AIR: Quick hint: Going Fullscreen

I’ve been lately working on a Multitouch Kiosk Project, in the upcoming days, I’ll be posting some of the quick hints I think they are worth sharing, some of them are simply good to know, others are braintwisting challenges I faced during the development.

To start off I would like to show you people how to go FullScreen on Startup of your application, before I show you how that works, let me tell you one very important thing:
Going fullscreen rightaway without any user interaction is ONLY available within Adobe AIR, don’t try this with a pure AS3 or a Flex Project as this will not work!

Why? Security! People visiting a website shouldn’t be capped by a website taking over the whole screen without them wanting to do so, in AIR you create an application that a user will need to install to be able to run it, therefore other security aspects.

Enough of gray theory, let’s have a look how to do this very complicated task ;)

//default fullscreenmode
stage.displayState = StageDisplayState.FULL_SCREEN;
 
//fullscreen mode with interactivity
stage.displayState = StageDisplayState.FULLSCREEN_INTERACTIVE;
 
//going back to normal screen
stage.displayState = StageDisplayState.NORMAL;

» Read more…

37. SFUG Usergroup Meeting

logo

The next SFUG (Swiss Flash User Group) takes place on the 6th of October 2010 with an awesome reivew of this years Flash on The Beach by Sandro and a very interesting and for sure useful talk about Android AIR development by Marcel.
Hope to see you all there.

Topic 1: Flash On the Beach Review  (Sandro Ducceschi/ swfjunkie.com)

Topic 2: Android Air Developement – part1( Marcel Vogt / Publicis )

When: 06. October 2010 / 19:00-22:00
Where: Publicis Werbeagentur, Stadelhoferstrasse 25, 8024 Zürich

More information about SFUG can be found on:
Adobe Groups