# Why \_y coordinates do not work in my code?

**URL:** <https://forum.kirupa.com/t/why--y-coordinates-do-not-work-in-my-code/212478>\
**Category:** Uncategorized\
**Created:** [January 11, 2007, 11:23am UTC](https://forum.kirupa.com/t/why--y-coordinates-do-not-work-in-my-code/212478 "2007-01-11T11:23:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rosanna](https://avatars.discourse-cdn.com/v4/letter/r/e0b2c6/32.png) [@rosanna](https://forum.kirupa.com/u/rosanna)\
**Post date:** [January 11, 2007, 11:23am UTC](https://forum.kirupa.com/t/why--y-coordinates-do-not-work-in-my-code/212478/1 "2007-01-11T11:23:02Z")

</div>

Now I have a code that works perfectly but something is wrong with the y coordinates.  
The mc I want to tween is a menu button. I just want to change its y coordinate up on rollover and down at its original position on rollout.  
my mc has a y coordinate at \_y 53 and should go up at \_y 43 on rollover  
and it should go down at original \_y 53 on rollout.  
So even if I respect precisely how the code should be built it does not do what I want.  
Or the mc button goes to high or it does not move at all  
What is wrong again ??? I go mad.  
so the code is  
import mx.transitions. Tween;  
import mx.transitions.easing.\*;  
menu1\_mc.onRollOver= function() {  
new tween(menu1\_mc,\_y,Bounce.easeIn,menu1\_mc.\_y,43,3,true);  
};  
menu1\_mc.onRollOut= function() {  
new tween(menu1\_mc,\_y,Bounce.easeIn,menu1\_mc.\_y,53,3,true);  
};
