# double\_click & doubleClickEnabled

**URL:** <https://forum.kirupa.com/t/double-click-doubleclickenabled/317860>\
**Category:** flash\
**Created:** [January 4, 2011, 10:35pm UTC](https://forum.kirupa.com/t/double-click-doubleclickenabled/317860 "2011-01-04T22:35:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grass](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@grass](https://forum.kirupa.com/u/grass)\
**Post date:** [January 4, 2011, 10:35pm UTC](https://forum.kirupa.com/t/double-click-doubleclickenabled/317860/1 "2011-01-04T22:35:59Z")

</div>

Hi, let’s see if i understood the logics behind this new cool feature in as3:

```auto

var a = new Sprite();
var b = new Sprite(); //imagine there's some graphics inside there...

a.addChild(b);

a.doubleClickEnabled = true; // this doesn't work
b.doubleClickEnabled = true; //thisone does
a.addEventListener(MouseEvent.DOUBLE_CLICK, func);

```

…so from the events perspective, the doubleClickEnabled property needs to be set on “target”, not “currentTarget”…

OK now, I was lucky to figure it out pretty fast, but:  
lets say my parent mc (that handles the listener) has like tons of children… I really do have to loop through them and set all of their doubleClickEnabled props to true???

really?!?!?!
