# Mouse actions, (on release, on roll over etc) only work now this way?

**URL:** <https://forum.kirupa.com/t/mouse-actions-on-release-on-roll-over-etc-only-work-now-this-way/228910>\
**Category:** Uncategorized\
**Created:** [June 12, 2007, 2:26pm UTC](https://forum.kirupa.com/t/mouse-actions-on-release-on-roll-over-etc-only-work-now-this-way/228910 "2007-06-12T14:26:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielKirupin](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@danielKirupin](https://forum.kirupa.com/u/danielKirupin)\
**Post date:** [June 12, 2007, 2:26pm UTC](https://forum.kirupa.com/t/mouse-actions-on-release-on-roll-over-etc-only-work-now-this-way/228910/1 "2007-06-12T14:26:31Z")

</div>

So the only way now in actionscript 3.0 to trigger a mouse action is to write a listener and then an event handler ?

no longer can we write actionscript directly to the movie clip like this:

on(release){

this.gotoAndStop(2);

}

and no longer can we just write this in the main timeline to get to a movieclip:

button.onRelease = function() {  
button.y =+ 20;  
}

So I just wanted to confirm this, as always any help is appreciated.
