(keitai-l) Fwd: Flash Lite 2.1 i-mode key capture

From: Dan Atkinson <dan_at_danatkinson.com>
Date: 06/27/08
Message-ID: <75c5a980806262344k7dd42f99v9fc82c170b5e4e2d@mail.gmail.com>
Hi
I am trying to detect up and down button events in flash lite 2.1 using AS 2
but it's having problems when testing on a P905i phone.

The basic code is:

keyListener.onKeyDown = function() {

    if (Key.getCode() == Key.UP){
        scroll_up();
    }

    if (Key.getCode() == Key.DOWN){
        scroll_down();
    }
}

Key.addListener(keyListener);

On the P905i the key code being returned is 9 for up and down, all the other
keys function as normal, Does anyone know anyway to fix this?

Thanks

-Dan
Received on Fri Jun 27 09:44:32 2008