# ?onPress event with MCs which were created with createEmptyMovieClip?

**URL:** <https://forum.kirupa.com/t/onpress-event-with-mcs-which-were-created-with-createemptymovieclip/166414>\
**Category:** Uncategorized\
**Created:** [October 19, 2005, 6:55pm UTC](https://forum.kirupa.com/t/onpress-event-with-mcs-which-were-created-with-createemptymovieclip/166414 "2005-10-19T18:55:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![beenetto](https://avatars.discourse-cdn.com/v4/letter/b/c2a13f/32.png) [@beenetto](https://forum.kirupa.com/u/beenetto)\
**Post date:** [October 19, 2005, 6:55pm UTC](https://forum.kirupa.com/t/onpress-event-with-mcs-which-were-created-with-createemptymovieclip/166414/1 "2005-10-19T18:55:47Z")

</div>

how can I have the onPress and all the other event handlers working  
with MCs wich were crated with the createEmptyMovieClip?  
I allready did some reading wich says that I have to assign them to a  
external class file, but so far I have no idea how to do that and what the  
.AS file should contain.
