Unfortunately there's no solution I know which can get
this done directly.
The way to go is the age old way of Flash, where you
need to use a timer
to delay the handling of the click event.
If within the time, a doubleClick is not dispatched,
handle click or if
it doesnt then handle click
Also i want to point out that if you are using a
DG(dataGrid), its
better to go for itemClick & itemDoubleClick event
than the normal click
& doubleClick events...
You can find the explanation and code here -
http://raghuonflex.wordpress.com/2007/08/10/assigning-different-behaviors-on-click-doubleclick/
Thanks
Raghu
--
Raghunath Rao
Engineer, Flex Framework
Adobe Systems, Bangalore
--~--~---------~--~----~----------------------~-------~--~
The opinions and views expressed here are purely my
own
and are in no way endorsed by my company (Adobe
Systems)
-~----------~----~----~----~------~----~-----------------~
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/
Sorry... Some typo in there :) "If within the time, a doubleClick is not dispatched, handle click or if it doesnt then handle click. Also i want to point out that if you are using a DG(dataGrid), its better to go for itemClick & itemDoubleClick event than the normal click & doubleClick events..." What i meant was... "If within the time, a doubleClick is not dispatched, handle click or if it does then handle only double click. Also i want to point out that if you are using a DG(dataGrid), its better to go for itemClick & itemDoubleClick event than the normal click & doubleClick events..." Thanks Raghu
-- Raghunath Rao Engineer, Flex Framework Adobe Systems, Bangalore --~--~---------~--~----~----------------------~-------~--~ The opinions and views expressed here are purely my own and are in no way endorsed by my company (Adobe Systems) -~----------~----~----~----~------~----~-----------------~