# attachMovie and button. Help please

**URL:** <https://forum.kirupa.com/t/attachmovie-and-button-help-please/121993>\
**Category:** Uncategorized\
**Created:** [September 9, 2004, 11:09am UTC](https://forum.kirupa.com/t/attachmovie-and-button-help-please/121993 "2004-09-09T11:09:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mx\_guest2004](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@mx\_guest2004](https://forum.kirupa.com/u/mx_guest2004)\
**Post date:** [September 9, 2004, 11:09am UTC](https://forum.kirupa.com/t/attachmovie-and-button-help-please/121993/1 "2004-09-09T11:09:03Z")

</div>

Hi,  
I have used attachMovie to put a button on the stage. And under the attachMovie code I have an button.onRelease or button.onPress:  
[AS]  
pauseButton.onPress=someFunction(x,y );  
[/AS]  
The problem is that the function runs at the begining of the movie without using that button at all. I have a stop all movieClip function and the movie stops. When I remove the onPress, then movie runs as normal but I don’t have the button neither.  
I need this attachMovie method to have that button on all my scenes.

Any help on this please? 🙂  
mx-guest2004
