# Hittest calls easing function

**URL:** https://forum.kirupa.com/t/hittest-calls-easing-function/169193
**Category:** Uncategorized
**Created:** [November 14, 2005, 11:53am UTC](https://forum.kirupa.com/t/hittest-calls-easing-function/169193 "2005-11-14T11:53:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jakepeg](https://avatars.discourse-cdn.com/v4/letter/j/8dc957/32.png) [@jakepeg](https://forum.kirupa.com/u/jakepeg)
#### Post date: [November 14, 2005, 11:53am UTC](https://forum.kirupa.com/t/hittest-calls-easing-function/169193/1 "2005-11-14T11:53:31Z")

</div>

on frame 1 I am using easing functions to make a menu slide out.

on the menu I have the following code

[AS]  
onClipEvent (enterFrame) {  
if (this.hitTest(\_root.\_xmouse, \_root.\_ymouse, true))  
{  
trace(“icons hit”);  
\_root.buttonsOUT();  
\_root.labelsOUT();  
}  
}  
[/AS]

for some reason the hittest calls the function. but the slide menu stutters out rather than sliding smoothly.

if I remove the hittest and replace it with a simple on release then it work fine.

I think that the hittest keeps triggering the function over and over as the trace is tracing loads of times in the output window.
