In some languages Ive worked in, the click event is eaten as soon as it sees a doubleclick, so you dont have to worry. From what youre saying, Flex doesnt work like this, so I guess youll have to simulate it yourself.
One option is to fire a timer on the click event, and if a doubleclick hasnt occured in the interim, then handle it as a click. Pretty ugly huh? but it will work. Alternatively handle the doubleclick yourself by seeing if two clicks occur in the timers interval. Im fairly new to Flex though, so dont take this as being the only solution, I just couldnt think of another. --- In [email protected], "ecpmaz" <[EMAIL PROTECTED]> wrote: > > I don't know if this is implemented natively somewhere in flex... but I > want to cancel a click event when a double click is caught. > > <mx:TextInput > click="f1()" > doubleClick="f2()" > /> > If user double clicks, f1 and f2 will be launched... I want only f2 to > be launched. > > > The same goes between mouseDown and mouseClick : I d'ont want to launch > a mouseDown when the user simply clicks... > > Any idea ? > > Mathieu LEMAIRE >

