Hi All: I have this code below that moves my MC to a x-y cord on a mouse click. That works great. However, now I need modify it a bit to SCALE with the move.
OK, code on my MC:
onClipEvent (load) {
_root.targetx = -600;
_root.targety = -10;
speed = 3;
_root.onEnterFrame = function() {
_x += (_root.targetx-_x)/speed;
_y += (_root.targety-_y)/speed;
};
}
onClipEvent (enterFrame) {
if (_y == targety && _x == targetx) {
delete this.onEnterFrame;
}
}
And the code on my btn:
on (release) {
_root.targetx = -950;
_root.targety = -222;
}