Search This Blog

Saturday, April 10, 2010

ActionScipt MouseEvent's CLICK vs. DOUBLE_CLICK

Programmer Question

is it not possible to have both CLICK and DOUBLE_CLICK on the same display object? i'm trying to have both for the stage where double clicking the stage adds a new object and clicking once on the stage deselects a selected object.



it appears that DOUBLE_CLICK will execute both itself as well as the first CLICK functions in the path toward DOUBLE CLICK (mouse down, mouse up, click, mouse down, mouse up, double click).



in other languages i've programmed with there was a built-in timers that set the two apart. is this not available in AS3?



Find the answer here

No comments:

Post a Comment

Related Posts with Thumbnails