Thanks Alex, but I dont't understand. Are you setting a flag on the event? I think that setting a flag in user code will not stop the stage from listening to mouse move event or mouse move event from dispatching. Can you please clarify?
For example, i am dispatching mouse move event like this: dg.getChildAt(2).dispatchEvent(new MouseEvent(MouseEvent.MOUSE_MOVE, true, false, 100, 50)); what I would like to archive would be to prevent mouse from dispatching its own mouse move event when ever it is moved, so that i control the flow of the app with dispatching events within action script instead of dispatching them by clicking or moving a mouse. Thanks --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > We do this by setting a flag when we dispatch the faked event so the > blocking handler doesn't block. > > > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of workmichal > Sent: Friday, November 02, 2007 7:47 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Prevent Mouse events > > > > Thanks guys, the idea behind this is to control the app by simply > dispatching events. so for example i can initiate drag and drop > between grids by dispatching mouse down and mouse move events, however > the problem is that when i start moving a mouse than manual events are > in conflict with actual mouse events. The only thing that comes to my > mind which would address this would be to temporarily disconnect > default application(systemManager) mouse listeners or to actually > associate mouse cursor with manual event, however i was not able to > figure out how to implement any of these. Any ideas are appreciated. > > Thanks, > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > , "Daniel Freiman" <FreimanCQ@> wrote: > > > > This method intercepts right mouse clicks using javascript, so it > should be > > adaptable for left/all mouse clicks. Although I have to agree with > Alex, I > > other than right mouse clicks, I can't think of a situation where this > > wouldn't be overkill. > > > > http://code.google.com/p/custom-context-menu/ > <http://code.google.com/p/custom-context-menu/> > > > > - Dan Freiman > > > > On 11/2/07, Alex Harui <aharui@> wrote: > > > > > > Why do you have to be that bulletproof? You'd probably have to > find a > > > way to block the events from the OS going to the plug-in in the > browser. > > > > > > > > > ------------------------------ > > > > > > *From:* flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> > [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > ] *On > > > Behalf Of *workmichal > > > *Sent:* Thursday, November 01, 2007 1:52 PM > > > *To:* flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> > > > *Subject:* [flexcoders] Re: Prevent Mouse events > > > > > > > > > > > > Hi, thanks for your input; however, this is not a solution that I am > > > looking for since for example mouse event will still fire, or click > > > event on the shield will still occur. What I am looking for is to > > > disconnect mouse events from the flex app so that none of the events > > > would ever dispatched. > > > > > > Thanks, > > > > > > --- In flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> <flexcoders%40yahoogroups.com>, > "Alex > > > Harui" <aharui@> wrote: > > > > > > > > stopImmediatePropagation, or place a transparent 'shield' over > the app. > > > > > > > > > > > > > > > > ________________________________ > > > > > > > > From: flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> <flexcoders%40yahoogroups.com> > [mailto: > > > flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > <flexcoders%40yahoogroups.com>] On > > > > Behalf Of workmichal > > > > Sent: Thursday, November 01, 2007 10:02 AM > > > > To: flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> <flexcoders%40yahoogroups.com> > > > > Subject: [flexcoders] Prevent Mouse events > > > > > > > > > > > > > > > > Hi there, > > > > I am trying to prevent my Flex application from capturing any > mouse > > > > events within the app. I tried mouseChildren, mouseEnabled but my > > > > application is still receiving events like mouse move. Is there > a way > > > > to disable and enable participation of the mouse within the Flex > app? > > > > Thank you > > > > > > > > > > > > > > > >