# Adding to x position

**URL:** https://forum.kirupa.com/t/adding-to-x-position/192380
**Category:** flash
**Created:** [June 28, 2006, 6:56am UTC](https://forum.kirupa.com/t/adding-to-x-position/192380 "2006-06-28T06:56:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Koos](https://avatars.discourse-cdn.com/v4/letter/k/2acd7d/32.png) [@Koos](https://forum.kirupa.com/u/Koos)
#### Post date: [June 28, 2006, 6:56am UTC](https://forum.kirupa.com/t/adding-to-x-position/192380/1 "2006-06-28T06:56:47Z")

</div>

Hello.  
I’m trying very simple, but I can’t get it to work:

Say I have a block mc, with a button next to it. If I click on the button, I want to ADD 50 units to the block’s x position. That’s easy, the problem is that the block shifts instantaneously, does anyone know how to tween that block from its initial state to its final state.

I can tween it using some script, but with that, I can only SPECIFY an x position VALUE, I only want to add units to the block mc’s x position.

What I want is something in the lines of the map on this site (click the buttons to scroll the map):

[http://www.newzealand.com/travel/travel-planner/my-travel-planner.cfm](http://www.newzealand.com/travel/travel-planner/my-travel-planner.cfm)

Puhleease help if you can. :toad:
