# Can't click on Subclass display object, help?

**URL:** <https://forum.kirupa.com/t/cant-click-on-subclass-display-object-help/285136>\
**Category:** flash\
**Created:** [March 27, 2009, 1:17pm UTC](https://forum.kirupa.com/t/cant-click-on-subclass-display-object-help/285136 "2009-03-27T13:17:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hunson](https://avatars.discourse-cdn.com/v4/letter/h/977dab/32.png) [@Hunson](https://forum.kirupa.com/u/Hunson)\
**Post date:** [March 27, 2009, 1:17pm UTC](https://forum.kirupa.com/t/cant-click-on-subclass-display-object-help/285136/1 "2009-03-27T13:17:56Z")

</div>

I got this as a subclass, basically it’s a movieclip on top and a loader on the bottom.

```auto

        public function WorkThumb(namer:String, desc:String, url:String, thumb:String, num:uint) {
            addChild(loader_mc)
            addChild(workDis);
            urlTxt = url;
            desTxt = desc;
            nameTxt = namer;
            thumbTxt = thumb;
            numTxt = num;
        }

```

on the main class i used to load WorkThumb, basically i got functions like these:

```auto
_workThumb.mouseChildren = true;
                                _workThumb.buttonMode = true;
                                _workThumb.addEventListener(MouseEvent.ROLL_OVER, workDisRollOver);
                                _workThumb.addEventListener(MouseEvent.CLICK, workDisClick);

```

This should be working properly and it does, but there seem to be a slight problem.

i can’t rollover or click at the \_workThumb properly, it’s the kind of thing where it sometimes work, sometimes doesn’t. Do you guys have any suggestions? Would it be because there is a loader class in the sub class?

thanks
