# Code outside btn

**URL:** <https://forum.kirupa.com/t/code-outside-btn/61857>\
**Category:** Uncategorized\
**Created:** [August 22, 2004, 7:56pm UTC](https://forum.kirupa.com/t/code-outside-btn/61857 "2004-08-22T19:56:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brandon](https://avatars.discourse-cdn.com/v4/letter/b/f08c70/32.png) [@Brandon](https://forum.kirupa.com/u/Brandon)\
**Post date:** [August 22, 2004, 7:56pm UTC](https://forum.kirupa.com/t/code-outside-btn/61857/1 "2004-08-22T19:56:14Z")

</div>

okay ive made a movieclip and i am putting absolutly all the code for the entire swf in it. Everythings been doing good so far except whats the code for a button. This is such an easy problem but for some reason i just cant remember how.  
Clarify: i need a release code for outside the button.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 22, 2004, 8:00pm UTC](https://forum.kirupa.com/t/code-outside-btn/61857/2 "2004-08-22T20:00:59Z")

</div>

```auto
myButton.onRelease = function () 
{
    trace ("onRelease called");
};

```
