Horizontal and vertical action tween

Hello all,

I have a problem with which I’m struggeling. I tried dearching for the solution, but the search was unlucky. My problem is that I want to build my stie like a cross (with only the centered page visible) and then, through a mouseclick, let the page move to the center position. To do this I want to incomrporate a horizontal and vertical action tween. However if I do this with the code below, it only tweens the y tween. How can I get flash to execute both tweens?



menu_1.onRelease = function (){
 
 function tween() { var xPosT:Tween = new Tween(object, "_x", Strong.easeOut, object._x, 0, 1, true)};
 function tween() { var yPosT:Tween = new Tween(object, "_y", Strong.easeOut, object._y, 0, 1, true)};
 
}