Hi Nick
I tried getAscii() and it returns '9' for both the up and down keys as with
getCode(). It seems to be an issue with certain docomo phones as far as i
can see.
-Dan
On Mon, Jun 30, 2008 at 7:40 PM, Nick Gerig <lists@device54.com> wrote:
> First thing in the morning I completely misread the thread :)
>
> There are some keys on Nokia implementations that return the same code
> when you use getCode(), whereas getAscii() always returns a unique
> number. Might be worth checking if you havent already.
>
>
> Cheers
>
> Nick
>
> Nick Gerig wrote:
> > Have you tried keylistener.onKeyUp = function(){}
> >
> > Or is this a Japanese implementation issue?
> >
> > Cheers
> >
> >
> > Nick
> >
> >
> > Darren Osadchuk wrote:
> >
> >> Hi Dan,
> >>
> >> You can capture up/down key presses in AS 2 using a 3-button hack: set
> >> the focus to the middle button ( Selection.setFocus() ), then when the
> >> user presses up (the top button receives focus), fire scroll_up() and
> >> return the focus to the middle button. Do something similar for the
> >> bottom button. I don't believe that there is a way using listeners to
> >> capture up/down presses.
> >>
> >> If you want to drop me a note off-list I can send you a sample fla.
> >>
> >> Thanks,
> >> Darren
> >>
> >> --
> >> Darren Osadchuk
> >> darren@LudicrousSoftware.com
> >> www.LudicrousSoftware.com
> >>
> >> Dan Atkinson wrote:
> >>
> >>
> >>> 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
> >>>
> >>>
> >>>
> >>> This mail was sent to address darren@ludicroussoftware.com
> >>> Need archives? How to unsubscribe? http://www.appelsiini.net/keitai-l/
> >>>
> >>>
> >>>
> >> This mail was sent to address lists@device54.com
> >> Need archives? How to unsubscribe? http://www.appelsiini.net/keitai-l/
> >>
> >>
> >>
> >>
> >
> >
> > This mail was sent to address lists@device54.com
> > Need archives? How to unsubscribe? http://www.appelsiini.net/keitai-l/
> >
> >
> >
> >
>
>
>
>
> This mail was sent to address dan@danatkinson.com
> Need archives? How to unsubscribe? http://www.appelsiini.net/keitai-l/
>
>
--
Dan Atkinson
dan@danatkinson.com
Received on Mon Jun 30 14:27:40 2008