# Attaching sound

**URL:** <https://forum.kirupa.com/t/attaching-sound/88945>\
**Category:** Uncategorized\
**Created:** [May 3, 2005, 7:57pm UTC](https://forum.kirupa.com/t/attaching-sound/88945 "2005-05-03T19:57:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jondj24](https://avatars.discourse-cdn.com/v4/letter/j/5f9b8f/32.png) [@jondj24](https://forum.kirupa.com/u/jondj24)\
**Post date:** [May 3, 2005, 7:57pm UTC](https://forum.kirupa.com/t/attaching-sound/88945/1 "2005-05-03T19:57:28Z")

</div>

I am trying to have sound play when the user rolls over an image with this code below:

```auto

container._visible = 0;
thumbsnr = 4;
for (var i = 1; i<=thumbsnr; i++) {
        mc = this["mc_"+i];
        mc.onRelease = function() {
			container._visible =1;
                container.attachMovie(this._name, clip, 1);
        };
}

```

the script i am using for the sound is this:

```auto

s = new Sound();
s.attachSound("sound_1");
s.start();

```

i have done the linkage but it still doesn’t seem to be working.
