Okay, I'm working on my portfolio. And I got this on the "profile" MC:
code:
onClipEvent (load) {
targetx = 143;
targety = 136;
speed = 8;
function pull(){
_x += (targetx-_x)/speed;
_y += (targety-_y)/speed;
}
function push(){
_x -= (88+_x)/speed;
_y -= (81+_y)/speed;
}
}




Now that all works.


I have the same code on "porfolio" MC. And taht all works.
On a button I have this code
code:
on (release) {
this.onEnterFrame = function(){
profile.pull();
}
}



and I have that on another button also.

Okay, now here is my problem: When one button is clicked and the Mc starts to move to targetx, if you click another button it stop on MC and moves the other. I think it might have to do with" this.onEnterFrame = function(){"


Make sense?

Thanks to whoever helps!