# Little problem with sound

**URL:** <https://forum.kirupa.com/t/little-problem-with-sound/231128>\
**Category:** Uncategorized\
**Created:** [July 2, 2007, 12:16pm UTC](https://forum.kirupa.com/t/little-problem-with-sound/231128 "2007-07-02T12:16:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adrian\_cob](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@adrian\_cob](https://forum.kirupa.com/u/adrian_cob)\
**Post date:** [July 2, 2007, 12:16pm UTC](https://forum.kirupa.com/t/little-problem-with-sound/231128/1 "2007-07-02T12:16:05Z")

</div>

ok so here’s my code :

```auto

mc1.onRelease = function() {
    if(nowPlaying !== 1){
    nowPlaying = 1;
    audio.loadSound("mySound1.mp3", true);
    preload(1);
    audio.start(pausePos);
    }else{
        nowPlaying = 0;
        audio.stop();
        pausePos = audio.position/1000;
        
    }
};

```

when i click mc1 it starts playing when i click it again it stops. when i click it a third time it starts from the beginning. I’d want it to play from where it left, but it doesn’t work. does anyone know what i’m doing wrong ? thanks.
