# AS3 movieclip problem - mouse speed

**URL:** <https://forum.kirupa.com/t/as3-movieclip-problem-mouse-speed/332441>\
**Category:** flash\
**Created:** [June 9, 2014, 7:25am UTC](https://forum.kirupa.com/t/as3-movieclip-problem-mouse-speed/332441 "2014-06-09T07:25:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nealkemp](https://avatars.discourse-cdn.com/v4/letter/n/e68b1a/32.png) [@nealkemp](https://forum.kirupa.com/u/nealkemp)\
**Post date:** [June 9, 2014, 7:25am UTC](https://forum.kirupa.com/t/as3-movieclip-problem-mouse-speed/332441/1 "2014-06-09T07:25:41Z")

</div>

Hi, I wonder if anyone can shed some light on this and maybe provide a solution:

I have a movieclip button with a rollover function that goes to the next frame which holds two buttons that can be clicked. It all works almost perfect except that when I test or publish the movie, if I roll over the movie clip really fast with the mouse the functions dont work. It is like I’m moving too fast for flash to trigger the code.

Inside my movieclip I have an invisible border around it, that has a Rollout code that is supposed to return the clip to frame 1 and i think this is the issue because when the mouse moves too fast this action does not trigger.

this is the code i have for the invisible button:

> 

TDinvisible\_btn.addEventListener(MouseEvent.ROLL\_OUT, f3\_RollOutHandler);

function f3\_RollOutHandler(event:MouseEvent):void

{  
gotoAndStop(1);

}

is anyone able to elaborate on why this is happening and also provide an alternative piece of code that will work regardless of how fast the user moves the mouse?
