Re: [flexcoders] How can I DISABLE THE STUPID SPACE BAR GLOBALLY?

2006-11-06 Thread Tom Chiverton
On Saturday 04 November 2006 23:18, jpc14_99 wrote:
> mouseEnabled = false buttons!! (The last one has to be a bug, why
> would anyone want to allow keyboard 'clicks' on a button when they
> aren't allowing mouse clicks on it.)

I have no idea, but it's not a bug - it does what it says on the tin.

-- 
Tom Chiverton
Helping to enthusiastically mesh robust portals



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



RE: [flexcoders] How can I DISABLE THE STUPID SPACE BAR GLOBALLY?

2006-11-04 Thread Gordon Smith












You can't turn off the KeyboardEvents that
the Flash Player dispatches. But you can stop components from listening to
them.

 

In the Button source code, I see

 

    override protected function
keyDownHandler(event:KeyboardEvent):void

    {

    if (!enabled)

    return;

 

    if (event.keyCode ==
Keyboard.SPACE)

    buttonPressed();

    }

 

    override protected function
keyUpHandler(event:KeyboardEvent):void

    {

    if (!enabled)

    return;

 

    if (event.keyCode ==
Keyboard.SPACE)

    {

    buttonReleased();

 

    if (phase == ButtonPhase.DOWN)

    dispatchEvent(new
MouseEvent(MouseEvent.CLICK));

    phase = ButtonPhase.UP;

    }

    }

 

So you could write a BetterButton subclass
and override these two handlers to not respond to the SPACE key. Then you'd use
 everywhere instead of 

 

- Gordon

 









From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of jpc14_99
Sent: Saturday, November 04, 2006
3:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How can I
DISABLE THE STUPID SPACE BAR GLOBALLY?



 







Trouble!

So I found out today that the spacebar fires a click event on the last
focused button.

This includes hidden buttons, buttons in other states, and even
mouseEnabled = false buttons!! (The last one has to be a bug, why
would anyone want to allow keyboard 'clicks' on a button when they
aren't allowing mouse clicks on it.)

So basically I'm running around re-writing my event handlers for every
single button to ignore these spacebar triggers.

Is there someway I can just turn off this stupid spacebar from firing
the events?

Thanks!

Jamie






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___






[flexcoders] How can I DISABLE THE STUPID SPACE BAR GLOBALLY?

2006-11-04 Thread jpc14_99
Trouble!

So I found out today that the spacebar fires a click event on the last
focused button.

This includes hidden buttons, buttons in other states, and even
mouseEnabled = false buttons!! (The last one has to be a bug, why
would anyone want to allow keyboard 'clicks' on a button when they
aren't allowing mouse clicks on it.)

So basically I'm running around re-writing my event handlers for every
single button to ignore these spacebar triggers.

Is there someway I can just turn off this stupid spacebar from firing
the events?


Thanks!

Jamie




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/