Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Desktop, Mobile and non-browser Environments > FlashLite / Portable Devices Development

Reply
 
Thread Tools Rate Thread Display Modes
Old 09-25-2007, 09:57 AM   #1
amisha
Registered User
 
Join Date: Jul 2007
Posts: 7
Default Extended soft key problem

Hi
I am trying to override the functionality of left and right soft key of Windows mobile O2 device. I have written the code as

fscommand2("SetSoftKeys", "Left", "Right");
fscommand2("FullScreen", true);
Key.removeListener (myListener);

var myListener:Object = new Object ();
myListener.onKeyDown = function () {
var keyCode = Key.getCode ();
if (keyCode == ExtendedKey.SOFT1) {
Status = "Left soft key pressed";
}
if (keyCode == ExtendedKey.SOFT2) {
Status = "Right soft key pressed";
}
}

Key.addListener (myListener);


It is working perfectly on the emulator but when I test it on the device and press the right soft key. The application is exiting.
Is there any other way for it.
amisha is offline   Reply With Quote
Old 10-03-2007, 03:52 PM   #2
bryan_sor
Registered User
 
Join Date: Oct 2007
Posts: 4
Default

Amisha, your code looks correct at a quick glance. I'm at work so can't check but it *looks* exactly like code I use (unless there's a small typographical error I'm missing). The response you're getting sounds like it's not supported. One thing you can do is change your code to:

isSupported = fscommand2("SetSoftKeys", "Left", "Right");

And then do a trace on isSupported. Per the docs it should return a 0 if the device supports that command, -1 if not. My device that it works on is WM5 , not 02 also.
bryan_sor is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem to jump to next input textfield with tab key when embedFonts is set to true maes100 ActionScript 2.0 1 10-23-2007 11:55 AM
Tab key focus problem p.stupka ActionScript 3.0 3 09-08-2007 06:18 PM
Problem with loading unloading clips and dynamic text sah302 ActionScript 1.0 (and below) 1 01-06-2006 06:19 PM
problem with class import : Extended Tween alexandre_lab ActionScript 2.0 6 11-01-2005 11:06 AM
Flash Number type and c# float and decimal types. Convertion problem within Flash. maglez ActionScript 2.0 2 06-02-2005 06:14 PM


All times are GMT. The time now is 12:45 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.