# Getting MC position

**URL:** https://forum.kirupa.com/t/getting-mc-position/181596
**Category:** flash
**Created:** [March 10, 2006, 6:50pm UTC](https://forum.kirupa.com/t/getting-mc-position/181596 "2006-03-10T18:50:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![LoungeActx](https://avatars.discourse-cdn.com/v4/letter/l/71c47a/32.png) [@LoungeActx](https://forum.kirupa.com/u/LoungeActx)
#### Post date: [March 10, 2006, 6:50pm UTC](https://forum.kirupa.com/t/getting-mc-position/181596/1 "2006-03-10T18:50:17Z")

</div>

I have a question about the tween class. I’m looking for a way to get the current position of a movieclip, and fill it into a tween function.

For example:

> var xTweenMain:Tween = new Tween(main\_mc, “\_x”, Strong.easeOut, 0, -300, 1, true);

Now I have a movie clip that moved on the x axis from 0 to -300. Say I have a bunch of movieclips lined up on the x axis, and I want to click a button and have it know where it’s current position is. So that I don’t have a bunch of if statements for every button. It’s hard to explain. If I need to set up an example .fla I will.
