you're defining the same variables twice (which doesn't make sense) and one of them has two different values, so, the last which is read by the flash player will prevail
so, instead of sending the variables to the _root, you can define them in each of the mcs:
Code:
onClipEvent (load) {
x = 361.5;//change this to where it goes to.
y = 128;//change this to where it goes to.
speed = 10;//change the speed.
}
onClipEvent (enterFrame) {
z = (x-this._x)/speed;
w = (y-this._y)/speed;
this._x += z;
this._y += w;
}
Code:
onClipEvent (load) {
x = 361.5;//change this to where it goes to.
y = 227;//change this to where it goes to.
speed = 10;//change the speed.
}
onClipEvent (enterFrame) {
z = (x-this._x)/speed;
w = (y-this._y)/speed;
this._x += z;
this._y += w;
}
you also defined speed in the movieClip
if you want to define all the variables in the _root, you'll have to use diferent names for different values.