[flexcoders] Stopping double-click of a button 'bubble' to the datagrid row

2009-09-01 Thread Nick Middleweek
Hello, I've got an advancedDataGrid (AvDG) and the first column has an item renderer which has a button on it. The button has a click handler. There is also a itemDoubleClick handler on the AvDG. Users are double-clicking the button so this is firing the click of the button handler but the

RE: [flexcoders] Stopping double-click of a button 'bubble' to the datagrid row

2009-09-01 Thread Alex Harui
MouseEvents are not cancelable. You can kill them via stopImmediatePropagation. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Nick Middleweek Sent:

Re: [flexcoders] Stopping double-click of a button 'bubble' to the datagrid row

2009-09-01 Thread Beau Scott
Event.stopPropagation() or stopImmediatePropagation() (depending on whether you want events on the current node to be executed before the event stops or not: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=horizontal xmlns:local=* mx:Script