Alex's answer is what I was thinking of. I was running out the door and thought it was more complicated than that, but it appears it isn't.
Here's a link to someone who's already implemented this as an object: http://www.senocular.com/flash/actionscript.php?file=ActionScript_3.0/com/senocular/utils/KeyObject.as I remember having issues concerning what object to add the keyboard event listener to. If SystemManager doesn't work, try Stage (I know Application won't work). Dan Freiman nondocs <http://nondocs.blogspot.com> On 5/2/07, Michael Schmalle <[EMAIL PROTECTED]> wrote:
Huh, It's funny the obvious things you forget. dumb de dumb dumb. Thanks, I will just let the users know that little quirk and they can have an option. Thanks Alex, PS, This is just randomness but, in my mind I would assume that since a mouseOver event is a MouseEvent, that logically it should pass the sate consistently. That is why I wasted an hour with my code. ;-) Mike On 5/2/07, Alex Harui <[EMAIL PROTECTED]> wrote: > > Mike, > > Yeah, we're discussing the player keyboard API internally at Adobe. > > You can always listen for keyUp/keyDown on the systemManager and keep > track of SHIFT, but if somebody is really mean and holds down SHIFT while > outside the app then you're out of luck. > > -Alex > > ------------------------------ > *From:* [email protected] [mailto:flexcompone > [EMAIL PROTECTED] *On Behalf Of *Daniel Freiman > *Sent:* Wednesday, May 02, 2007 3:23 PM > *To:* [email protected] > *Subject:* Re: [flexcomponents] Shift Key :: MouseOver > > There are workarounds because this type of thing is a common problem. > Search the archives of this list and you should find something. Solutions > with problems with keyboard events may be similar enough to help you. I > know I've pointed people to resources on issues similar to this. I'll see > if I can find them later tonight when i get back to my computer. > > - Dan Freiman > nondocs <http://nondocs.blogspot.com> > > On 5/2/07, Michael Schmalle <[EMAIL PROTECTED] > wrote: > > > > > There is discussion about providing some other way to determine > > the state of shiftkeys so if you file it, it might not get fixed. > > > > So are you saying I'm out of lick right now? The discussion is > > happening at Adobe? > > > > It's in manager logic. MouseOver shows a cursor, I want the cursor not > > to appear if the shift key is down. > > > > hmm, I don't see any other way of attacking this problem the way I > > have it programmed right now. > > > > Well, not that I think about it, I guess I could settle for showing > > the mouse but not letting the action on mouseDown occur. > > > > Thanks Alex, > > > > Peace, Mike > > > > On 5/2/07, Alex Harui < [EMAIL PROTECTED]> wrote: > > > > > > I'd say it is a bug, although the player only checks on > > > mouseDown. There is discussion about providing some other way to determine > > > the state of shiftkeys so if you file it, it might not get fixed. > > > > > > -Alex > > > > > > ------------------------------ > > > *From:* [email protected] [mailto: [EMAIL PROTECTED] > > > *On Behalf Of *Michael Schmalle > > > *Sent:* Wednesday, May 02, 2007 12:24 PM > > > *To:* [email protected] > > > *Subject:* [flexcomponents] Shift Key :: MouseOver > > > > > > Hi, > > > > > > I am trying to find out if the shift key is down with a mouseOver > > > event. > > > > > > The mouseOver event is not returning the correct value. I hold the > > > shift key down and then mouseOver, debugging the handler it shows the > > > shiftKey = false. > > > > > > But, if I debug the mouseDown handler it shows the shiftKey is down > > > with true. > > > > > > Is this a bug or the way it is supposed to work? > > > > > > Peace, Mike > > > > > > -- > > > Teoti Graphix > > > http://www.teotigraphix.com > > > > > > Blog - Flex2Components > > > http://www.flex2components.com > > > > > > You can find more by solving the problem then by 'asking the > > > question'. > > > > > > > > > > > > -- > > Teoti Graphix > > http://www.teotigraphix.com > > > > Blog - Flex2Components > > http://www.flex2components.com > > > > You can find more by solving the problem then by 'asking the > > question'. > > > > > -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
