Actually, on top of that, I think isDown checks the Key Code which would be
65.



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of James Booth
Sent: Thursday, November 02, 2006 4:15 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Getting a press for regular key...

Could it be the case of your variable?

KEY_a versus Key_a



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of eric dolecki
Sent: Thursday, November 02, 2006 8:51 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Getting a press for regular key...

I have this:

var KEY_a:Number = 97;

function myOnKeyDown():Void
{
    trace( Key.isDown(Key_a));
};

var keyListener:Object = new Object();
keyListener.onKeyDown = myOnKeyDown;
Key.addListener( keyListener );

When I press the "a" key - I get a false. What is the proper shortcut code
in the myOnKeyDown to properly get the trace to return True?

- e.
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to