# Controlling an external sound clip

**URL:** <https://forum.kirupa.com/t/controlling-an-external-sound-clip/250735>\
**Category:** Uncategorized\
**Created:** [January 31, 2008, 11:48pm UTC](https://forum.kirupa.com/t/controlling-an-external-sound-clip/250735 "2008-01-31T23:48:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpr](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@mpr](https://forum.kirupa.com/u/mpr)\
**Post date:** [January 31, 2008, 11:48pm UTC](https://forum.kirupa.com/t/controlling-an-external-sound-clip/250735/1 "2008-01-31T23:48:53Z")

</div>

I’ve got a movie that’s loading another into a container (instance name musicContainer). The movies that are loading are simple 1x1px movies that I’m using to house some music. What I’d like to have is a simple play / pause for that music that’s loading externally. Here’s what I’ve got for code:

```auto

mcMute.onRelease = function() {
    if (this.musicContainer.getVolume() == 100) {
        this.musicContainer.setVolume(0);
        mcMute.gotoAndStop(2);
    } else {
        this.musicContainer.setVolume(100);
        mcMute.gotoAndStop(1);
    }
}

```

Do I need to reference the external clip at all or can I call it through the movieclip that it’s loading to? I’m missing something here.
