# Movieclip events

**URL:** https://forum.kirupa.com/t/movieclip-events/242326
**Category:** Uncategorized
**Created:** [October 24, 2007, 7:53pm UTC](https://forum.kirupa.com/t/movieclip-events/242326 "2007-10-24T19:53:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Exodar](https://avatars.discourse-cdn.com/v4/letter/e/e79b87/32.png) [@Exodar](https://forum.kirupa.com/u/Exodar)
#### Post date: [October 24, 2007, 7:53pm UTC](https://forum.kirupa.com/t/movieclip-events/242326/1 "2007-10-24T19:53:28Z")

</div>

how do you call an onClipEvent(enterframe) of a movieclip to happen when that movieclip is pressed?

```auto
on(press) {
onClipEvent(enterframe) {
//code to happen when movieclip is pressed
}
}

```

when i type this in i get an error because on events cannot be nested within other on events. how can you get around this?
