# Help incorporating easing into my function

**URL:** <https://forum.kirupa.com/t/help-incorporating-easing-into-my-function/174541>\
**Category:** Uncategorized\
**Created:** [January 6, 2006, 3:20pm UTC](https://forum.kirupa.com/t/help-incorporating-easing-into-my-function/174541 "2006-01-06T15:20:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nugget](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@nugget](https://forum.kirupa.com/u/nugget)\
**Post date:** [January 6, 2006, 3:20pm UTC](https://forum.kirupa.com/t/help-incorporating-easing-into-my-function/174541/1 "2006-01-06T15:20:37Z")

</div>

i have this function that moves my mc under a mask, when it gets to the higher than the mask its text changes then moves to a position lower then the mask and scrolls back up to its origional position with the updated text. the problem is i need help making it ease instead of just moving with “this.\_y -=6”

my code:

```auto
 
function newProject(g, d, l, c, t) {
 dtext.onEnterFrame = function() {
  this._y -= 6;
  //moving up
  if (this._y < -388) {
   this.description.htmlText = "<font color=\"#CC0000\">+ "+t+"</font><br>"+d+"<br><font color=\"#0099cc\"><a href=\""+l+"\">> Launch It</a></font><br><br><font color=\"#cc0000\">Client:</font> "+c;
   //go below the mask
   this._y = -56;
  }
  if (this._y == -188) {
   delete this["onEnterFrame"];
  }
 };
}

```
