# Multiple buttons - some work some don't?

**URL:** https://forum.kirupa.com/t/multiple-buttons-some-work-some-dont/95551
**Category:** Uncategorized
**Created:** [November 26, 2003, 11:12pm UTC](https://forum.kirupa.com/t/multiple-buttons-some-work-some-dont/95551 "2003-11-26T23:12:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![et10yl](https://avatars.discourse-cdn.com/v4/letter/e/94ad74/32.png) [@et10yl](https://forum.kirupa.com/u/et10yl)
#### Post date: [November 26, 2003, 11:12pm UTC](https://forum.kirupa.com/t/multiple-buttons-some-work-some-dont/95551/1 "2003-11-26T23:12:21Z")

</div>

Hiya,

I have several buttons on the stage (one scene only). 1 of them works, the rest of them don’t. They all use the same code, all placed in a layer called Actions:

```auto

this.InstanceName.onRelease = function() {
  gotoAndStop("frameLabel");
}

```

I have found that if I place the action directly on the button itself, instead of using actionscripting in an actions layer, the button will work. But then, it seems that I’d have to put the code on each keyframe that holds the button.

Code I put on individual button:

```auto

on(release){
 gotoAndStop("frameLabel");
}

```

Any thoughts?

Thanks!  
noushie
