# Plays movieclips on timeline

**URL:** <https://forum.kirupa.com/t/plays-movieclips-on-timeline/321954>\
**Category:** Uncategorized\
**Created:** [May 5, 2011, 2:22pm UTC](https://forum.kirupa.com/t/plays-movieclips-on-timeline/321954 "2011-05-05T14:22:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pravingate07](https://avatars.discourse-cdn.com/v4/letter/p/4491bb/32.png) [@pravingate07](https://forum.kirupa.com/u/pravingate07)\
**Post date:** [May 5, 2011, 2:22pm UTC](https://forum.kirupa.com/t/plays-movieclips-on-timeline/321954/1 "2011-05-05T14:22:37Z")

</div>

Hi, i have one page on which there are 4 images. for each images i have added mouse event listeners . that means whenever i 'll click on particular image respective movieclip will play.

I have taken movieclips on timeline. so my code is :

```auto

stop();

gt_mc.buttonMode=true;

gt_mc.addEventListener(MouseEvent.MOUSE_UP,GT);

function GT(e:MouseEvent):void{
    gotoAndPlay("gt"); // this movieclip is on frame no 3.

}

/////////////////////////////////////////////////////    
cm_mc.buttonMode=true;
cm_mc.addEventListener(MouseEvent.MOUSE_UP,CM);

function CM(e:MouseEvent):void{
    gotoAndPlay("cm"); //this movieclip is on frame no 4.
    }
////////////////////////////////////////////////////////    

```

when i’m clicking on button gt\_mc, particular movieclip play with sound finely.

\*\* but whenever i’m trying to click on button cm\_mc, it plays particular movieclip but first movieclips sound also plays in background.

why is it so?

i have heard abiut addChild property, how can i use them here to solve my problem.

Any other method will be acceptable.
