# Actionscript sounds

**URL:** <https://forum.kirupa.com/t/actionscript-sounds/217657>\
**Category:** Uncategorized\
**Created:** [February 28, 2007, 6:57pm UTC](https://forum.kirupa.com/t/actionscript-sounds/217657 "2007-02-28T18:57:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mario\_hater](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@mario\_hater](https://forum.kirupa.com/u/mario_hater)\
**Post date:** [February 28, 2007, 6:57pm UTC](https://forum.kirupa.com/t/actionscript-sounds/217657/1 "2007-02-28T18:57:16Z")

</div>

i have some code in a function that goes like this

```auto
gong = new Sound();
    gong.attachSound("gong");[as/]

and then on the frame that i need it i have

```

gong.start()[as/]  
at the end of the frame the sound plays if i don’t use it for some reason. Does anyone know why this is?
