# Help with onPress!

**URL:** <https://forum.kirupa.com/t/help-with-onpress/231298>\
**Category:** flash\
**Created:** [July 3, 2007, 3:21pm UTC](https://forum.kirupa.com/t/help-with-onpress/231298 "2007-07-03T15:21:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pattt](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@Pattt](https://forum.kirupa.com/u/Pattt)\
**Post date:** [July 3, 2007, 3:21pm UTC](https://forum.kirupa.com/t/help-with-onpress/231298/1 "2007-07-03T15:21:24Z")

</div>

AS2:

```auto

// [COLOR=black]this = movieclip, because the code is inside the mc[/COLOR]
this.onPress = function() {
 pressing = true;
};
this.onRelease = this.onReleaseOutside=function () {
 pressing = false;
};

```

How will this look in AS3? Please help! I can’t figure it out. :look:
