# Moving movieclip on x coordinate - HELP

**URL:** https://forum.kirupa.com/t/moving-movieclip-on-x-coordinate-help/164378
**Category:** flash
**Created:** [September 30, 2005, 5:14pm UTC](https://forum.kirupa.com/t/moving-movieclip-on-x-coordinate-help/164378 "2005-09-30T17:14:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![walterwolf](https://avatars.discourse-cdn.com/v4/letter/w/3d9bf3/32.png) [@walterwolf](https://forum.kirupa.com/u/walterwolf)
#### Post date: [September 30, 2005, 5:14pm UTC](https://forum.kirupa.com/t/moving-movieclip-on-x-coordinate-help/164378/1 "2005-09-30T17:14:36Z")

</div>

Hello!:thumb:

Please check the [www.techmarksupport.com](http://www.techmarksupport.com) [flash version]  
The site is simpy great.I downloaded it with decompiler  
and studied it. Tried to do the same but couldn’t!

There are movements in both x and y direction.  
Y is NOT what interests me.

By decompiling it i found  
MOVIECLIP (a)(( very wide shape with images)) with the script:

// Sprite (‘a’) actions…

// Frame 1 actions…

x\_vel = ( xvel - \_x ) \* 0,1;  
y\_vel = ( yvel - \_y ) \* 0,1;  
setProperty("",\_x,Number (x\_vel) + Number (\_x));  
setProperty("",\_y,Number (y\_vel) + Number (\_y));

// Frame 2 actions…

gotoAndPlay(1);

on the stage there are buttons which when pressed  
move that movieclip across the stage (X CORDINATE) and stop at  
specified coordinates.

first button -

on( press ){  
\_root.a:xvel = 0;  
\_root.a:yvel = 0;  
}

second button -

on( press ){  
\_root.a:xvel = -780;  
\_root.a:yvel = 0;  
}

please try to make some simple copy of it  
and sand me that FLA if possible!!!

THANK YOU IN ADVANCED!!!  
GREETINGS FROM C R O A T I A!!!

MATIJA PREMEC
