Re: [Flashcoders] Re: Disable focus change on arrow keys down

2009-08-05 Thread Jer Brand
Complete shot in the dark, but have you tried upping the priority of the
event listener and continuing to use stopImmediatePropagation()?  My thought
is that perhaps the focus change listener is occurring before your listener.
So, if it's possible to up the priority of your listener above that of the
focus change listener, you might be able to prevent the behavior.
Another idea: set the focusRect property to false, and Create a custom
focusRect for a focused state  that appears to be the yellow rectangle and
activate that state when the scrollpane has focus?



Jer


On Tue, Aug 4, 2009 at 6:39 PM, Patrick Matte
patrick.ma...@tbwachiat.comwrote:

 I forgot to mention, it works if I set the scrollpane focusRect property to
 false. But I want to use the default yellow focusrect.


  From: Patrick Matte patrick.ma...@tbwachiat.com
  Date: Tue, 04 Aug 2009 16:35:43 -0700
  To: Flash Coders List flashcoders@chattyfig.figleaf.com
  Conversation: Disable focus change on arrow keys down
  Subject: Disable focus change on arrow keys down
 
  When the focus is set to this scrollpane I made, I want to use the arrow
 keys
  to scroll the scrollpane content left, up, down, and right. But flash
  automatically changes focus to the next object in the tab order as soon
 as I
  press an arrow key. Is there any way to prevent that? I've tried calling
  preventDefault, stopImmediatePropagation and stopPropagation on the
 keydown
  handler but it doesn't change anything.



 This e-mail is intended only for the named person or entity to which it is
 addressed and contains valuable
 business information that is proprietary, privileged, confidential and/or
 otherwise protected from disclosure.

 If you received this e-mail in error, any review, use, dissemination,
 distribution or copying of this e-mail
 is strictly prohibited. Please notify us immediately of the error via
 e-mail to disclai...@tbwachiat.com and
 please delete the e-mail from your system, retaining no copies in any
 media. We appreciate your cooperation.

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: Disable focus change on arrow keys down

2009-08-04 Thread Patrick Matte
I forgot to mention, it works if I set the scrollpane focusRect property to
false. But I want to use the default yellow focusrect.


 From: Patrick Matte patrick.ma...@tbwachiat.com
 Date: Tue, 04 Aug 2009 16:35:43 -0700
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Conversation: Disable focus change on arrow keys down
 Subject: Disable focus change on arrow keys down
 
 When the focus is set to this scrollpane I made, I want to use the arrow keys
 to scroll the scrollpane content left, up, down, and right. But flash
 automatically changes focus to the next object in the tab order as soon as I
 press an arrow key. Is there any way to prevent that? I've tried calling
 preventDefault, stopImmediatePropagation and stopPropagation on the keydown
 handler but it doesn't change anything.



This e-mail is intended only for the named person or entity to which it is 
addressed and contains valuable 
business information that is proprietary, privileged, confidential and/or 
otherwise protected from disclosure.

If you received this e-mail in error, any review, use, dissemination, 
distribution or copying of this e-mail 
is strictly prohibited. Please notify us immediately of the error via e-mail to 
disclai...@tbwachiat.com and 
please delete the e-mail from your system, retaining no copies in any media. We 
appreciate your cooperation.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders