Yes, this code does indeed work; however i’m not sure if it works the way you want it to. The movieclip expands and shrinks everytime you click on the movieclip. Can you please specify exactly what you want to do?
I am assuming that you want the movie clip to only expand instead of expand and then compress on the next clip, but then again I have a feeling I am still wrong with what you need. Just in case I took out the if statement and made it so that it could only expand.
onClipEvent (load) {
speed = 10;
x = 100;
y = 100;
}
onClipEvent (mouseUp) {
x += 300;
y += 300;
}
onClipEvent (enterFrame) {
_xscale += (x-_xscale)/speed;
_yscale += (y-_yscale)/speed;
}