# OnEnterFrame function happening when I rollover button?

**URL:** https://forum.kirupa.com/t/onenterframe-function-happening-when-i-rollover-button/149361
**Category:** flash
**Created:** [May 28, 2005, 7:37am UTC](https://forum.kirupa.com/t/onenterframe-function-happening-when-i-rollover-button/149361 "2005-05-28T07:37:29Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Sith\_FuzZO](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@Sith\_FuzZO](https://forum.kirupa.com/u/Sith_FuzZO)
#### Post date: [May 28, 2005, 7:37am UTC](https://forum.kirupa.com/t/onenterframe-function-happening-when-i-rollover-button/149361/1 "2005-05-28T07:37:29Z")

</div>

I have two movie clips. movieclip A has an onEnterFrame function in my Scene 1 --\> actions layer --\> frame 1.

Movieclip B is on my scene 1 but the actions are in a frame in a layer inside Movieclip B. When i scroll over the button, an animation occurs.

for some reason, when i scroll over the button, the animation occurs and the function inside the onEnterFrame occurs also?

anyone know how i can stop that???
