Issue – Flash Lite stub does not close on pressing red key (FIXED)

Issue

In few software versions of Nokia 5800, when u run a stub application developed using swfpack.comĀ  (or may be other packaging tools) then it wont get closed on pressing red key. However, there is a work around posted by Risalmin in Forum Nokia .

Fix

Fix of this issue is quite easy i.e listen to red key event in Flash Lite and excecute the fscommand2 for quiting app. Use this AS code , to acheive the taskĀ  :

var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
if(Key.getCode()=="endcall"){
fscommand2("Quit");
}
}
Key.addListener(keyListener);

 

Best Regards,

Sajid Ali Anjum (SajiSoft)

%d bloggers like this: