# mouseChildren & mouseEnabled problem

**URL:** <https://forum.kirupa.com/t/mousechildren-mouseenabled-problem/297645>\
**Category:** flash\
**Created:** [October 6, 2009, 12:55pm UTC](https://forum.kirupa.com/t/mousechildren-mouseenabled-problem/297645 "2009-10-06T12:55:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![regbolD](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@regbolD](https://forum.kirupa.com/u/regbolD)\
**Post date:** [October 6, 2009, 12:55pm UTC](https://forum.kirupa.com/t/mousechildren-mouseenabled-problem/297645/1 "2009-10-06T12:55:29Z")

</div>

i have a class that extends sprite.  
in that class i make an instance of a movieclip simbol from the library.  
i also set some other properties like:

```auto
_popup = new PopupMC();
addChild(_popup);
_popup.alpha = 0;
_popup.mouseChildren = false;
_popup.mouseEnabled = false;
_popup.popup_txt.autoSize = TextFieldAutoSize.LEFT

```

on my timeline i do this:

```auto
import com.zerro.utils.Popup;
var popup:Popup = new Popup( myXML );
addChild(popup);

```

now, before that was a class (with some other code as well) this mouseChildren & mouseEnabled worked normally.  
basically i needed to disable that movieclip so that it doesnt interfere with the mouse.

now that i have made a class out of it this mouseChildren & mouseEnabled doesnt work.  
i go it to work accidentally by doing this:

```auto
import com.zerro.utils.Popup;
var popup:Popup = new Popup( myXML );
addChild(popup);
**popup.mouseEnabled = false;
popup.mouseChildren = false;**

```

and this is the first time i have experienced something like that 😃  
adding properties like that on that instance, it this normal?  
… because i havent sleeped well last night 😃

i dont get it why doesnt it work when i set this in a class, because setting

```auto
_popup.alpha = 0;

```

does work.
