# Playing Sounds

**URL:** <https://forum.kirupa.com/t/playing-sounds/219892>\
**Category:** Uncategorized\
**Created:** [March 20, 2007, 11:01pm UTC](https://forum.kirupa.com/t/playing-sounds/219892 "2007-03-20T23:01:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mythic\_Fr0st](https://avatars.discourse-cdn.com/v4/letter/m/4da419/32.png) [@Mythic\_Fr0st](https://forum.kirupa.com/u/Mythic_Fr0st)\
**Post date:** [March 20, 2007, 11:01pm UTC](https://forum.kirupa.com/t/playing-sounds/219892/1 "2007-03-20T23:01:30Z")

</div>

Ok, I need to know how to play sounds, this is what I have

(I have flash 8 pro)

I’ve gone to linkage, selected “export actionscript & first frame”

gave it the identifier “beep”

then used this code…

```auto
function start_interval()
{
    _global.interval = new Number(1);
    _global.beep_interval= new Number(setInterval(beep, interval*1000));
    trace("start_runs");
}

function stop_interval()
{
    beep.stop();
    trace("stop runs");
}
    

function beep()
{
    trace("runs billion times a second");
    beep.start(_global.interval*60, 999999);
}

//end

start_btn.onRelease = start_interval();
stop_btn.onRelease = stop_interval();

```

Thanks in advance
