Disabling Virtual Keypad in FL3 on Nokia 5800

1 Comment
Tags: , ,
Posted 09 Apr 2009 in Development

Just a quick tip for those Flash mobile developers out there playing with Flash Lite 3.0 and the Nokia 5800 XpressMusic touch screen device. By default the 5800 (and presumably other future S60 5th Edition touch screen devices) displays a virtual keypad in the Flash Lite 3.0 standalone player. Even if you have included the ActionScript for playing the SWF at fullscreen [ fscommand2("FullScreen", true"); ], the virtual keypad will break full screen and take up screen real estate in the player, as you can see in the image below.

The way to avoid this is to add another line of ActionScript immediately before the fullScreen command -

fscommand2(“DisableKeypadCompatibilityMode”);

I personally don’t think this is an ideal solution for Flash Lite on touch screen devices. I understand the use case for where a virtual keypad (which includes the 4-way directional keys, enter key and 2 soft keys) might be required with touch-based apps, but why not have it so that you can toggle it on an off, and also have it float over the top of the full screen content rather than making it look broken?

Anyway, in the meantime, if you’re developing cool touch-based Flash Lite 3.0 apps for the Nokia devices then keep this code snippet in mind and don’t get caught out.


1 Comments

  1. Great snippet Dale. using it right now!
    Thx a lot.



Add Your Comment

Spam Protection by WP-SpamFree