I have created a game in AS3 that uses the SPACE bar on the keyboard to
make the character jump. I have encountered a problem whereby pressing the
SPACE bar causes a button on my game screen to be clicked.
I read up that setting buttonMode to false would fix this but it does not
seem to like me
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul Steven
Sent: woensdag 2 december 2009 10:27
To: 'Flash Coders List'
Subject: [Flashcoders] Prevent space button passing click event to button
(as3)
I have created a game in AS3 that uses the SPACE bar on the keyboard to
make
Buttons are meant to be pressed like that. You are using the wrong
object for the job.
Here is my take on it: you have a game where there are button instances
in the gui. I would add the keyboard listener to the stage as usual.
However, in the listener, I would add a condition to ignore
Coders List
Subject: Re: [Flashcoders] Prevent space button passing click event to
button (as3)
Buttons are meant to be pressed like that. You are using the wrong
object for the job.
Here is my take on it: you have a game where there are button instances
in the gui. I would add the keyboard
Paul Steven wrote:
Thanks for the replies.
When you say buttons are meant to be pressed like that - do you mean that
it is standard practice to use the tab key to move between buttons and then
use the SPACE key to click it?
It wasn't implemented just to screw with people. It is how disabled
-boun...@chattyfig.figleaf.com] On Behalf Of Henrik
Andersson
Sent: 02 December 2009 13:36
To: Flash Coders List
Subject: Re: [Flashcoders] Prevent space button passing click event to
button (as3)
Paul Steven wrote:
Thanks for the replies.
When you say buttons are meant to be pressed like
6 matches
Mail list logo