# How to achieve this?

**URL:** <https://forum.kirupa.com/t/how-to-achieve-this/284756>\
**Category:** Uncategorized\
**Created:** [March 23, 2009, 12:14pm UTC](https://forum.kirupa.com/t/how-to-achieve-this/284756 "2009-03-23T12:14:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adnan794](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@adnan794](https://forum.kirupa.com/u/adnan794)\
**Post date:** [March 23, 2009, 12:14pm UTC](https://forum.kirupa.com/t/how-to-achieve-this/284756/1 "2009-03-23T12:14:08Z")

</div>

Hi

I am using events to manipulate movie clips over and out functionality.

I have a main movie clip which contains all other individual clip e.e clip1 , clip2 and so one and inside clip1 I have two more movie clips sub clip1 and sub clip2. Now when mouse roll over clip one I want to run over event for both sub clips of one and like wise for clip2/

If you have a look at the attached diagram then you will have a better idea of wht I am talking about.

my AS3 code is given below.

```auto

mainClip.addEventListener(MouseEvent.MOUSE_OVER, onOver)
mainClip.addEventListener(MouseEvent.MOUSE_OUT, onOut)
mainClip.buttonMode = true

function onOver(event:MouseEvent)
{
    //event.currentTarget.alpha = 0;
    event.target.alpha = 0;
}

function onOut(event:MouseEvent)
{
    //event.currentTarget.alpha = 1;
    event.target.alpha = 1;
}

```

Thanks
