# \[flash8\] completely delete onPress event

**URL:** https://forum.kirupa.com/t/flash8-completely-delete-onpress-event/232757
**Category:** flash
**Created:** [July 17, 2007, 3:10pm UTC](https://forum.kirupa.com/t/flash8-completely-delete-onpress-event/232757 "2007-07-17T15:10:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Pier25](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pier25](https://forum.kirupa.com/u/Pier25)
#### Post date: [July 17, 2007, 3:10pm UTC](https://forum.kirupa.com/t/flash8-completely-delete-onpress-event/232757/1 "2007-07-17T15:10:43Z")

</div>

Hi everyone! 🙂

This is my first post here.

I’d like to completely erase an onPress = function() statement.

I’m using

delete movieclip.onPress

… and it works because no actions happens when I press that movieclip. But the problem is there’s still an on press statement but empty, and I can’t make any onpress on the inside movieclips.

BTW I still see the hand after using delete mc.onPress even if there are no actions assigned to that event.

TIA!  
Regards

Pier
