# Passing button X position

**URL:** <https://forum.kirupa.com/t/passing-button-x-position/250430>\
**Category:** flash\
**Created:** [January 29, 2008, 3:49pm UTC](https://forum.kirupa.com/t/passing-button-x-position/250430 "2008-01-29T15:49:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![felipegm](https://avatars.discourse-cdn.com/v4/letter/f/e9bcb4/32.png) [@felipegm](https://forum.kirupa.com/u/felipegm)\
**Post date:** [January 29, 2008, 3:49pm UTC](https://forum.kirupa.com/t/passing-button-x-position/250430/1 "2008-01-29T15:49:35Z")

</div>

HI

i´m using the code bellow to move a MC on buttons Click

```auto

import caurina.transitions.*;

button1.addEventListener (MouseEvent.CLICK,moveseta);
button2.addEventListener (MouseEvent.CLICK,moveseta);
button3.addEventListener (MouseEvent.CLICK,moveseta);

function moveseta (event:MouseEvent):void{
	Tweener.addTween (seta,{x:*Xvalue of clicked button*,time:1});
	
}

```

but the X valeu should be the buttons X value, so the MC moves to it. How to send this value to the function?

Thanks
