[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swftools-common] issue with key listener
From: |
Pablo Rodríguez |
Subject: |
Re: [Swftools-common] issue with key listener |
Date: |
Sun, 07 Nov 2010 10:46:24 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Fedora/3.1.6-1.fc13 Thunderbird/3.1.6 |
On 11/06/2010 10:42 PM, Chris wrote:
The last line of your code reads like one of my many typos Pablo.
Key.addlisterner(key_listen); ???
That could be why it doesn't work! ;o)
Thanks for your help, Chris.
I should check spelling more frequently ;-).
But even with the fix, it works with:
key_listener.onKeyDown = function() {
if ((Key.isDown(70)) || Key.isDown(102)) {
control_movie();
}
};
but not with:
key_listener.onKeyDown = function() {
if (Key.isDown(102)) {
control_movie();
}
};
I cannot understand why the second option doesn't work.
What am I missing here?
Thanks,
Pablo
--
http://www.ousia.tk