# I'm stumped. On (release) works but not onRelease

**URL:** <https://forum.kirupa.com/t/im-stumped-on-release-works-but-not-onrelease/252369>\
**Category:** Uncategorized\
**Created:** [February 19, 2008, 2:47pm UTC](https://forum.kirupa.com/t/im-stumped-on-release-works-but-not-onrelease/252369 "2008-02-19T14:47:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![praxiz](https://avatars.discourse-cdn.com/v4/letter/p/779978/32.png) [@praxiz](https://forum.kirupa.com/u/praxiz)\
**Post date:** [February 19, 2008, 2:47pm UTC](https://forum.kirupa.com/t/im-stumped-on-release-works-but-not-onrelease/252369/1 "2008-02-19T14:47:43Z")

</div>

How is it possible that this works.

```php
on (release) {
    _root.thumbs_mc.contentMain.damebilde1._x += 5;
    }

```

But this doesn’t work?

```php
_root.thumbs_mc.contentMain.damebilde1.onRelease = function () {
    trace ("onRelease called");
};

```

damebilde1 is a movieclip, by the way.
