11
Jul/09
0

Undocumented FSCommand2

I’ve been working on a small mobile Flash Lite application the last few days and though I’ve made several mobile applications in the past, it amazes me how much has changed in these few years. Not only have possibilities become far more advanced, the community has also grown tremendously. Especially the community over at Forum Nokia. Be sure to check that one out if you’re just getting started with mobile development, it has a lot of valuable resources and a discussion board that will see your questions answered in no time.

softkeys_portrait

But back to my most recent problem; whenever I ran my application in fullscreen mode and slid the phone closed (I was working with Nokia’s N97), I got an incredibly ugly on-screen softkeys emulator. After a lot of searching, I discovered that there is an FSCommand that is not covered in the Flash Lite language reference. The line of code below goes into the first frame of your application and effectively prevents the emulator from popping up.

FSCommand2("DisableKeypadCompatibilityMode");

I hope this saves some people some time searching.