attachMovie and button. Help please

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? :slight_smile:
mx-guest2004