Hi,
I'm using outerCanvas.addEventListener( MouseEvent.MOUSE_DOWN, moveWindow ); where outerCanvas is the canvas that holds another canvas, that hold the datagrid (whew!) So "trace(event.currentTarget)" always returns phoneBook0.outerCanvas, (phoneBook is the app name) So I'm unable to trap where the event has been fired from? Thanks Shaun To: flexcoders@yahoogroups.com From: timh...@aol.com Date: Wed, 1 Apr 2009 18:31:50 +0000 Subject: [flexcoders] Re: Creating exceptions to an eventlistener Hi, First, make sure, in the Canvas tag, that mouseChildren="true". You can also check in the drag event handler function if the currentTarget is a canvas or not: if ( !event.currentTarget is Canvas ) { event.stopImmediatePropagation; } There are probably better ways to do this, but this is a quick fix. -TH --- In flexcoders@yahoogroups.com, "smccran" <s_mcc...@...> wrote: > > Hi all, > > I've got a canvas with an event listener, that allows the user to drag the canvas around. > > The only problem is that I have a datagrid inside this canvas, and the event listener is interfering with it. > > IE I cannot drag the slider in the datagrid, or resize the column etc, as the event listener kicks in and moves the whole canvas instead. > > How can I create an exception for the datagrid? > > Thanks > Shaun > _________________________________________________________________ View your Twitter and Flickr updates from one place – Learn more! http://clk.atdmt.com/UKM/go/137984870/direct/01/