How do I make a clip move to a different location?

Hey every one, This is my first tread, but Im a long time viewer of this site.I ve got a question. Im trying to figure out how to move a clip from one location to another using a button. This is the code on my movie clip.

onClipEvent (load) {
_root.targX=100;;
}
onClipEvent (enterFrame) {
myX = this._x;
difX = myX-_root.targX;
setProperty (this, _x, myX-(difX/25));
}

This is the code on my button.

on (release) {
_root.targX = 600;

}
After the movie clip has move to its new _x location(600). How do I move the clip along its _y axis or any specific loction w/o having to use the random() method.
Got any clues. everyones help is much appreciated. Im using Flash 5.
SKEEN

welcome :beam:

allow me to send you in the direction of
“Object move wgen clicking a button”
http://www.kirupaforum.com/showthread.php?s=&threadid=10275

same basic concept

but I will point out that in
_root.targX = 600;
if (_root.targX==600) {
_root.targX._y=100;
}

you are making targX = 600; then checking to see if it is 600, and if so making targX._y = 100. Well of course targX is going to be 600 if you set it to be 600 the line before. The if has no purpose since its always true :\

:wink: