# Flash Button Activation

**URL:** <https://forum.kirupa.com/t/flash-button-activation/247845>\
**Category:** flash\
**Created:** [December 30, 2007, 11:12pm UTC](https://forum.kirupa.com/t/flash-button-activation/247845 "2007-12-30T23:12:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alblack15](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@alblack15](https://forum.kirupa.com/u/alblack15)\
**Post date:** [December 30, 2007, 11:12pm UTC](https://forum.kirupa.com/t/flash-button-activation/247845/1 "2007-12-30T23:12:44Z")

</div>

[LEFT]Hello,  
I am having a bit of difficulty with button activation. I have designed a new button and converted it to a symbol. I then wanted to have the button play a sound on its release. I tried multiple codes and many techniques but all proved to fail. What is the correct code for making a button play a sound on its release?

```auto

onRelease {
    gotoAndPlay("C");
}

```

This is the code that I used to play a frame labeled “C”. I also tried this code where the  
“C” was replaced with the actual frame, frame 94.  
Thanks in advance.  
AB  
[/LEFT]
