# Mc not moving to correct position

**URL:** <https://forum.kirupa.com/t/mc-not-moving-to-correct-position/176281>\
**Category:** Uncategorized\
**Created:** [January 22, 2006, 1:04pm UTC](https://forum.kirupa.com/t/mc-not-moving-to-correct-position/176281 "2006-01-22T13:04:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kathari](https://avatars.discourse-cdn.com/v4/letter/k/a183cd/32.png) [@kathari](https://forum.kirupa.com/u/kathari)\
**Post date:** [January 22, 2006, 1:04pm UTC](https://forum.kirupa.com/t/mc-not-moving-to-correct-position/176281/1 "2006-01-22T13:04:51Z")

</div>

Hi,  
this is sort of a continuation of an earlier thread (that included lots of different things). I was helped by Icio to have a background mc follow the size of the stage, Thanks! but when trying to move another mc to a different place it doesn’t go where it “should” but much too much to the right.  
I have made the script always related to center stage but it doesn’t work.  
Code:[AS]var setStageW = 780;  
var setStageH = 580;  
function onResize() {  
bgMc.\_x = setStageW/2-Stage.width/2;  
bgMc.\_y = setStageH/2-Stage.height/2;  
bgMc.\_width = Stage.width;  
bgMc.\_height = Stage.height;  
}  
Stage.addListener(this);  
onResize();  
aboutMenu.onRelease = function() {  
\_root.aboutLine.newx = Stage.width/2;  
trace(\_root.aboutLine.\_x);  
\_root.aboutLine.newy = (Stage.height/2)-230;  
};[/AS]and here is the code that I have on the mc:[AS]onClipEvent (load) {  
newx = this.\_x;  
x = 390;  
newy = this.\_y;  
y = 290;  
}  
onClipEvent (enterFrame) {  
y+= ((newy-y)/3);  
this.\_y = y;  
x += ((newx-x)/3);  
this.\_x = x;  
}[/AS]I have attached the file too.  
What is it I am doing wrong?:\*(
