# as2,cs3 problem with attachMovie and onPress

**URL:** <https://forum.kirupa.com/t/as2-cs3-problem-with-attachmovie-and-onpress/279313>\
**Category:** flash\
**Created:** [January 13, 2009, 10:33am UTC](https://forum.kirupa.com/t/as2-cs3-problem-with-attachmovie-and-onpress/279313 "2009-01-13T10:33:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trifa](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@trifa](https://forum.kirupa.com/u/trifa)\
**Post date:** [January 13, 2009, 10:33am UTC](https://forum.kirupa.com/t/as2-cs3-problem-with-attachmovie-and-onpress/279313/1 "2009-01-13T10:33:05Z")

</div>

Hi,

I’m newbie… I have a movieclip with onPress and I attach another movie to the first one. Unfortunately, the second movie inherits the onPress function from the first one. How can I remove the onPress function from the second movie? I tried to set it’s onPress and onRelease to null and undefined but no success.

Thanks in advanced!

PS I’m using AS 2 and CS 3.
