# Easing navigation effect.. help

**URL:** <https://forum.kirupa.com/t/easing-navigation-effect-help/210877>\
**Category:** Uncategorized\
**Created:** [December 23, 2006, 4:59am UTC](https://forum.kirupa.com/t/easing-navigation-effect-help/210877 "2006-12-23T04:59:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![geestring](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@geestring](https://forum.kirupa.com/u/geestring)\
**Post date:** [December 23, 2006, 4:59am UTC](https://forum.kirupa.com/t/easing-navigation-effect-help/210877/1 "2006-12-23T04:59:57Z")

</div>

cover.onEnterFrame = function ()  
{

```
if (this.hitTest(_root._xmouse, _root._ymouse) == false)
{
	destY = 91;
} // end if

```

};  
gal1\_btn.onRollOver = function()  
{  
destY = this.\_y;

};  
gal2\_btn.onRollOver = function()  
{  
destY = this.\_y;

};  
gal3\_btn.onRollOver = function()  
{  
destY = this.\_y;

};  
gal4\_btn.onRollOver = function()  
{  
destY = this.\_y;

};  
gal5\_btn.onRollOver = function()  
{  
destY = this.\_y;

};  
gal6\_btn.onRollOver = function()  
{  
destY = this.\_y;

};  
gal7\_btn.onRollOver = function()  
{  
destY = this.\_y;

};

arrow\_mc.onEnterFrame = function ()  
{  
this.\_y = this.\_y + (destY - this.\_y) / 10;  
};

ok everything is ok. arrow eases and goes where you rolledover. once you leave the hitest it goes back to 91. the original spot. But I want it so that when you click on a button. the arrow now eases back towards the section you just clicked making it the default.

see what I mean? i’ve tried but im not any good.

thanks.
