# Buttons not responding to external onRelease event def

**URL:** <https://forum.kirupa.com/t/buttons-not-responding-to-external-onrelease-event-def/187810>\
**Category:** Uncategorized\
**Created:** [May 2, 2006, 2:40pm UTC](https://forum.kirupa.com/t/buttons-not-responding-to-external-onrelease-event-def/187810 "2006-05-02T14:40:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kapstan](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@kapstan](https://forum.kirupa.com/u/kapstan)\
**Post date:** [May 2, 2006, 2:40pm UTC](https://forum.kirupa.com/t/buttons-not-responding-to-external-onrelease-event-def/187810/1 "2006-05-02T14:40:13Z")

</div>

hi,  
i have been working with this for a while and it’s such an easy problem to fix i’m sure, but i can’t seem to find what i am doing wrong.

I don’t want to assign code to each button individually for the sake of maintenance, but that’s the only way i can get this thing working.

the buttons simply don’t respond to the actions defined in their onRelease events…

```auto

btn_Instance.onRelease = function() {
  gotoAndPlay(frame);
  getURL("javascript:loadContent('content');");
}

```

i have tried it with simple traces and nothing happens thinking that it might be a focus issue as well i tried:

```auto

    this._focusrect = false;
    Selection.setFocus(this);

```

in the external code for the buttons but nothing seems to be helping.

i’ve attached the .fla that i’m using for this.

any help is appreciated. thanks!
