double click problems

Let’s say we want to set up a standard doubleClick interaction on a movie-clip(draw a square inside this clip) with instance name square:

function double(event:MouseEvent):void {

Compile, it should work fine – “doubleclick” should trace when you double click the square.

Now place a movie-clip inside square with instance name circle(draw a circle inside this clip).

Recompile. Notice that double-click isn’t recognised if you double click on the circle…

For some reason the circle movieClip is preventing the double-click event from bubbling up to square. forcing ‘circle’ to ignore the double-click and allow the event to continue on its merry way to ‘square’ is the best solution i have found:;

iOS development with Swift - book: video course:

Tagged with:
Posted in Flash

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: