# Tween class for elastic layout

**URL:** <https://forum.kirupa.com/t/tween-class-for-elastic-layout/178743>\
**Category:** Uncategorized\
**Created:** [February 13, 2006, 10:35pm UTC](https://forum.kirupa.com/t/tween-class-for-elastic-layout/178743 "2006-02-13T22:35:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![layer](https://avatars.discourse-cdn.com/v4/letter/l/9dc877/32.png) [@layer](https://forum.kirupa.com/u/layer)\
**Post date:** [February 13, 2006, 10:35pm UTC](https://forum.kirupa.com/t/tween-class-for-elastic-layout/178743/1 "2006-02-13T22:35:05Z")

</div>

how would i bring a tween class that would allow for elastic ease out into this code

Stage.align = “TL”;  
Stage.scaleMode = “noScale”;  
stageListener = new Object();  
stageListener.onResize = function() {  
moveIt();  
};  
Stage.addListener(stageListener);  
moveIt = function () {  
dash.onEnterFrame = function() {  
this.\_x += ((Stage.width / 2) - this.\_x) / 5;  
this.\_y += ((Stage.height / 2) - this.\_y) / 5;  
};  
};

stageListener.onResize();
