Re: [flexcoders] Global keyboard capture?

2008-03-05 Thread Troy Gilbert
stage.focus = null; However, the FocusManager may fight to put the focus somewhere. Ah, yes... I remember using that as my original attempt to fix this last year... I put a stage.focus = null in my enterFrame event handler and the FocusManager continually grabbed it back from me. Yeah, I

Re: [flexcoders] Global keyboard capture?

2008-03-05 Thread Troy Gilbert
This is why Rick's suggestion of both a capture and non-capture phase listener on stage is correct. Which is what I was doing originally, as per the source code in my first post. If a display object has the focus, then is removed from the stage, does it automatically lose the focus (I would

RE: [flexcoders] Global keyboard capture?

2008-03-05 Thread Alex Harui
at it. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Troy Gilbert Sent: Wednesday, March 05, 2008 8:01 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Global keyboard capture? This is why Rick's suggestion of both a capture and non-capture phase listener

Re: [flexcoders] Global keyboard capture?

2008-03-04 Thread Sherif Abdou
For Flex, use systemManager instead of stage from what i was told and the capture. no idea on combo sorry - Original Message From: thirtyfivemph [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, March 4, 2008 1:32:58 PM Subject: [flexcoders] Global keyboard capture? I'm

Re: [flexcoders] Global keyboard capture?

2008-03-04 Thread Troy Gilbert
For Flex, use systemManager instead of stage from what i was told and the capture. no idea on combo sorry Doesn't make a difference. The stage should be as low-level as it gets... shouldn't all keyboard events pass through the stage in either the capture or bubble phase? Maybe I'm missing

Re: [flexcoders] Global keyboard capture?

2008-03-04 Thread Jeffry Houser
Keep in mind that something must broadcast the event. a TextInput will broadcast a keyboard event. A container or Application will not. Troy Gilbert wrote: For Flex, use systemManager instead of stage from what i was told and the capture. no idea on combo sorry Doesn't make a

Re: [flexcoders] Global keyboard capture?

2008-03-04 Thread Troy Gilbert
Keep in mind that something must broadcast the event. a TextInput will broadcast a keyboard event. A container or Application will not. Keyboard events are broadcast by the player. I'm looking to grab (or look at) all of them. It shouldn't be dependent on anyone broadcasting them. Troy.

Re: [flexcoders] Global keyboard capture?

2008-03-04 Thread Jeffry Houser
In my experience (which was actually with AIR, not a Flex browser based app) they are. Listening to keyboard events at the main windowedApplication did nothing. Also, I'll add that any Caught keyboard event did not continue to bubble up to the main WindowedApplication (unless you

RE: [flexcoders] Global keyboard capture?

2008-03-04 Thread Rick Winscot
. Rick Winscot From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeffry Houser Sent: Tuesday, March 04, 2008 6:08 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Global keyboard capture? In my experience (which was actually with AIR, not a Flex

RE: [flexcoders] Global keyboard capture?

2008-03-04 Thread Rick Winscot
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sherif Abdou Sent: Tuesday, March 04, 2008 2:43 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Global keyboard capture? For Flex, use systemManager instead of stage from what i was told and the capture

Re: [flexcoders] Global keyboard capture?

2008-03-04 Thread Troy Gilbert
So – in reality… your implementation may determine which is better to use. But I do have something for you that might help. If you are having problems with the capture/bubbling/target phases you probably need to add two listeners as… You should've read all the way back to my original post...

RE: [flexcoders] Global keyboard capture?

2008-03-04 Thread Alex Harui
04, 2008 8:18 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Global keyboard capture? A continuance on the topic... From the Flex reference: All keyboard and mouse activity that is not expressly trapped is seen by the SystemManager, making it a good place to monitor activity

Re: [flexcoders] Global keyboard capture?

2008-03-04 Thread Josh McDonald
else (face turns red). Rick Winscot *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Sherif Abdou *Sent:* Tuesday, March 04, 2008 2:43 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Global keyboard capture? For Flex, use systemManager

RE: [flexcoders] Global keyboard capture?

2008-03-04 Thread Alex Harui
] On Behalf Of Rick Winscot Sent: Tuesday, March 04, 2008 8:18 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: RE: [flexcoders] Global keyboard capture? A continuance on the topic... From the Flex reference: All keyboard and mouse activity that is not expressly

RE: [flexcoders] Global keyboard capture?

2008-03-04 Thread Alex Harui
[mailto:[EMAIL PROTECTED] On Behalf Of Troy Gilbert Sent: Tuesday, March 04, 2008 9:00 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Global keyboard capture? So - in reality... your implementation may determine which is better to use. But I do have something for you that might help