20 December 2010

Intercept key event on Android

To exit your AIR android application, you need to call
NativeApplication.nativeApplication.exit();
when user press the BACK button

I see a lot of post on blog/forum which give this line of code
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyPress);

I must say it doesn't work on every use case.
For example, when I change screen, I remove my main sprite then add a new sprite.
If I do that, I 'lost' the input focus. I had to touch the screen to give the focus back.
Unless someone could tell me how to give the focus back (post a comment!), the solution is to use this line of code:
NativeApplication.nativeApplication.addEventListener(KeyboardEvent.KEY_DOWN, onKeyPress);

EDIT : this works for AS Mobile project only.
You need to make it like this on Flex mobile project.

28 November 2010

Test touch game w/o a real device is a pain

Some weeks ago, I finished my Poulpytris port for Android (using AIR for Android).
It's pure AS3 so I would like to port it to Nokia's FL4 devices

I think it works, but how could I seriously release a game for a device without real touch tests ?
I tried with Remote Device Access but I don't know if my game is slow or if the web is slow ;) Emulate touch throught Web is almost impossible....

So I think I'll keep this version for me until I got, perhaps, a FL4 enabled device (which I doubt since I'll soon receive an Android based one)
Plus I can't release it since I need to package it in a .sisx file and, so, need a valid IMEI....
why don't they support .nfl on S60 devices ?!!!
It's been so long we're asking for... :(

28 October 2010

Flash Builder Burrito available

At last, a Flash builder dedicated to mobile !

This week, Adobe released the beta 1 of Flash Builder Burrito....just when I finished my ANT script to handle Android publication on Flahs Builder 4 ;)

I must say a "Flex mobile project" is very easy to create !
I can't wait to test the "Actionscript mobile project".
They still included their boring help system using AIR but else, you'll be surprising how easy it is the make an AIR for Android application : this article on DevNet will help you (don't miss the videos at the end!)

Note this one is dedicated to FP10.1 output, not Flash Lite so...no Device Central!
It currently supports Android but Iphone/IPad & BBery will be added in a future release.

27 October 2010

FlashLite Phone Browser v1.3

I updated FlashLite phone browser to the new Sony Ericsson API.

For some times now, Sony tab didn't work anymore...sorry for that.

I also added support for newest Flash Lite and touch screen useful info.

Update througt Help > Check for update... or install from the launcher on the right.

21 October 2010

How to produce an app for iPhone/iPad

If you ever want to make a Flash game/app for iPhone/iPad, this post is the main one !
All you need to know in 6 links.

17 October 2010

Does AIR runtime's size matter ?

Before I port my game to AIR for Android, I tried to install the runtime on my buggy HTC Desire.
It's always interesting to read comments on this kind of 'important' release.
Unfortunatly, I mainly read comments on something I thought for the beginning : "what ? 16Mo ?!!" or "so big and can't be installed to SD!"

I still can't understand this size, I just can't imagine how long it would take to download and install it OTA...
Now, imagine this :
a gamer download your 200kb game
since it's an AIR game, the game's install process asks the gamer to also install the runtime
what do you think will be the reaction of the gamer when he will need to download a 5Mb file to play your 200kb game ?
and I can't imagine the nightmare if he paid for your game : "I paid for your game but I can't play because I can't/don't want to install an additional 5mb file"
It's EXACTLY what I thought when I downloaded a Polarbit game which asks to install the common lib for all their games

I still think there is a problem there....


It seems there is a trick to install AIR on the SD card but for developers only, not the common gamer!

15 October 2010

Who want to sponsor a mobile game ?

Like I said, we submitted a game to Flash Game License contest.
We're happy to say it's one of the 150 winners !

I choose Flash Game License because I (still) don't know the sponsor-way to make some money. As far as I know, the main site to start on sponsoring is Flash Game License so...
Sponsoring is common for Web games but not for mobiles games (I never found a company to sponsor flash lite games!). I hope there will be there a new way to make profit.

So, we now have a game ready to be sponsored* !
This game will be available on the coming soon Adobe site dedicated to Flash mobile games so it's here your chance to get maximum exposure !



Penguinoid is a fun cute game, just what a player looks for on mobile.

And, moreover, we hope we'll be able to publish it soon on the Android Market thanks to AIR2 for Android!

*link only available to register sponsor