# Stageclass centering and easing

**URL:** <https://forum.kirupa.com/t/stageclass-centering-and-easing/90796>\
**Category:** Uncategorized\
**Created:** [May 20, 2005, 7:28pm UTC](https://forum.kirupa.com/t/stageclass-centering-and-easing/90796 "2005-05-20T19:28:38Z")\
**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:** [May 20, 2005, 7:28pm UTC](https://forum.kirupa.com/t/stageclass-centering-and-easing/90796/1 "2005-05-20T19:28:38Z")

</div>

Stage.scaleMode = “noScale”;  
Stage.align = “LT”;

main\_mc.onResize = function() {

```
    main_mc._y += (Stage.height/2-main_mc._y)/15;
    
	main_mc._x += (Stage.width/2-main_mc._x)/15;

```

};  
Stage.addListener(main\_mc);  
stop();

I have that… it will only move when you resize… I want it so that when you resize it will finish all the way to the center.
